[arch-commits] Commit in cups/trunk (PKGBUILD cups)
Andreas Radke
andyrtr at nymeria.archlinux.org
Sun Feb 3 15:59:02 UTC 2013
Date: Sunday, February 3, 2013 @ 16:59:01
Author: andyrtr
Revision: 176994
drop support for initscripts
Modified:
cups/trunk/PKGBUILD
Deleted:
cups/trunk/cups
----------+
PKGBUILD | 4 ---
cups | 68 -------------------------------------------------------------
2 files changed, 1 insertion(+), 71 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-03 15:42:22 UTC (rev 176993)
+++ PKGBUILD 2013-02-03 15:59:01 UTC (rev 176994)
@@ -15,7 +15,7 @@
cups-no-gcrypt.patch
cups-no-gzip-man.patch
cups-systemd-socket.patch
- cups cups.logrotate cups.pam
+ cups.logrotate cups.pam
cupsd-conf-remove-obsolete-browse-directives.patch
avahi-missing-in-conditionals.patch
recognize-remote-cups-queue-via-dnssd-uri.patch
@@ -26,7 +26,6 @@
'3733c23e77eb503bd94cc368e02830dc'
'90c30380d4c8cd48a908cfdadae1ea24'
'b4868b83f7f2d6ec24a1be76509379f0'
- '9657daa21760bb0b5fa3d8b51d5e01a1'
'f861b18f4446c43918c8643dcbbd7f6d'
'96f82c38f3f540b53f3e5144900acf17'
'6bef262b5081051e88cd2ae94fed1867'
@@ -135,7 +134,6 @@
# kill the sysv stuff
rm -rf ${pkgdir}/etc/rc*.d
rm -rf ${pkgdir}/etc/init.d
- install -D -m755 ../cups ${pkgdir}/etc/rc.d/cupsd
install -D -m644 ../cups.logrotate ${pkgdir}/etc/logrotate.d/cups
install -D -m644 ../cups.pam ${pkgdir}/etc/pam.d/cups
Deleted: cups
===================================================================
--- cups 2013-02-03 15:42:22 UTC (rev 176993)
+++ cups 2013-02-03 15:59:01 UTC (rev 176994)
@@ -1,68 +0,0 @@
-#!/bin/bash
-
-daemon_name=cupsd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-#. /etc/conf.d/$daemon_name.conf
-
-get_pid() {
- pidof -o %PPID $daemon_name
-}
-
-case "$1" in
- start)
- stat_busy "Starting $daemon_name daemon"
-
- PID=$(get_pid)
- if [ -z "$PID" ]; then
- [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
- # RUN
- $daemon_name
- #
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- echo $(get_pid) > /var/run/$daemon_name.pid
- add_daemon $daemon_name
- stat_done
- fi
- else
- stat_fail
- exit 1
- fi
- ;;
-
- stop)
- stat_busy "Stopping $daemon_name daemon"
- PID=$(get_pid)
- # KILL
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- #
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- rm -f /var/run/$daemon_name.pid &> /dev/null
- rm_daemon $daemon_name
- stat_done
- fi
- ;;
-
- restart)
- $0 stop
- sleep 3
- $0 start
- ;;
-
- status)
- stat_busy "Checking $daemon_name status";
- ck_status $daemon_name
- ;;
-
- *)
- echo "usage: $0 {start|stop|restart|status}"
-esac
-
-exit 0
More information about the arch-commits
mailing list