openbsd-ports/print/cups/patches/patch-init_cups_sh_in

21 lines
468 B
Plaintext

$OpenBSD: patch-init_cups_sh_in,v 1.4 2010/04/07 13:55:30 ajacoutot Exp $
--- init/cups.sh.in.orig Wed Jul 11 23:46:42 2007
+++ init/cups.sh.in Mon Aug 31 10:28:36 2009
@@ -82,6 +82,16 @@ case "`uname`" in
fi
;;
+ OpenBSD*)
+ # Set the timezone. /etc/localtime is a symlink in
+ # default install, but it could be a regular file
+ if test -e /etc/localtime; then
+ export TZ=/etc/localtime
+ fi
+
+ IS_ON=:
+ ;;
+
*)
IS_ON=/bin/true
ECHO=echo