diff options
Diffstat (limited to 'source/ap/cups')
-rwxr-xr-x | source/ap/cups/cups.SlackBuild | 11 | ||||
-rw-r--r-- | source/ap/cups/doinst.sh | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/source/ap/cups/cups.SlackBuild b/source/ap/cups/cups.SlackBuild index 4a9f85ac1..1f5a41a88 100755 --- a/source/ap/cups/cups.SlackBuild +++ b/source/ap/cups/cups.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=cups VERSION=${VERSION:-$(echo $PKGNAM-*-source.tar.?z | cut -f 2 -d -)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -146,11 +146,10 @@ chmod 644 $PKG/etc/rc.d/rc.cups.new # Clear out the additions: rm -rf $PKG/etc/init.d $PKG/etc/rc{0,2,3,5}.d -# I'm not sure if overwriting this blindly could have ill effects, -# but it never hurts to play it safe. According to the dbus-daemon -# manpage, only files ending in .conf will be used, so there won't -# be any unintended doubling up. -mv $PKG/etc/dbus-1/system.d/cups.conf $PKG/etc/dbus-1/system.d/cups.conf.new +# Move the dbus config file to the system directory +mkdir -p $PKG/usr/share/dbus-1/system.d/ +mv $PKG/etc/dbus-1/system.d/* $PKG/usr/share/dbus-1/system.d/ +rmdir --parents $PKG/etc/dbus-1/system.d/ # For full CUPS SMB support, you'll need to install the cups-samba # package from the source in this directory. There's no easy way diff --git a/source/ap/cups/doinst.sh b/source/ap/cups/doinst.sh index d0349bca7..80ebbd17e 100644 --- a/source/ap/cups/doinst.sh +++ b/source/ap/cups/doinst.sh @@ -12,7 +12,7 @@ config() { for file in etc/cups/*.new ; do config $file done -config etc/dbus-1/system.d/cups.conf.new + if [ -r etc/pam.d/cups.new ]; then config etc/pam.d/cups.new fi |