[arch-commits] Commit in postfix/trunk (PKGBUILD rc.d)

Gaetan Bisson bisson at nymeria.archlinux.org
Mon May 13 06:07:43 EDT 2013


    Date: Monday, May 13, 2013 @ 12:07:43
  Author: bisson
Revision: 185323

remove deprecated rc script

Modified:
  postfix/trunk/PKGBUILD
Deleted:
  postfix/trunk/rc.d

----------+
 PKGBUILD |    7 ++-----
 rc.d     |   36 ------------------------------------
 2 files changed, 2 insertions(+), 41 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 10:07:09 UTC (rev 185322)
+++ PKGBUILD	2013-05-13 10:07:43 UTC (rev 185323)
@@ -15,12 +15,10 @@
 backup=('etc/postfix/'{access,aliases,canonical,generic,header_checks,main.cf,master.cf,relocated,transport,virtual})
 source=("ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz"{,.sig}
         'aliases.patch'
-        'service'
-        'rc.d')
+        'service')
 sha1sums=('dd9bfc7afee416aa9f2368d084a4b202718e42df' 'SKIP'
           '5fc3de6c7df1e5851a0a379e825148868808318b'
-          '3f385eca6d571a4ed8fb24781bdc003bec5d8ed6'
-          '40c6be2eb55e6437a402f43775cdb3d22ea87a66')
+          '3f385eca6d571a4ed8fb24781bdc003bec5d8ed6')
 
 provides=('smtp-server' 'smtp-forwarder')
 conflicts=('smtp-server' 'smtp-forwarder')
@@ -60,7 +58,6 @@
 
 	sh postfix-install -non-interactive install_root="${pkgdir}"
 
-	install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}"
 	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 	install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
 

Deleted: rc.d
===================================================================
--- rc.d	2013-05-13 10:07:09 UTC (rev 185322)
+++ rc.d	2013-05-13 10:07:43 UTC (rev 185323)
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-name=postfix
-
-case "$1" in
-start)
-	stat_busy "Starting $name daemon"
-	/usr/sbin/postfix start &>/dev/null \
-	&& { add_daemon $name; stat_done; } \
-	|| { stat_fail; exit 1; }
-	;;
-stop)
-	stat_busy "Stopping $name daemon"
-	/usr/sbin/postfix stop &>/dev/null \
-	&& { rm_daemon $name; stat_done; } \
-	|| { stat_fail; exit 1; }
-	;;
-reload)
-	stat_busy "Reloading $name daemon"
-	/usr/sbin/postfix reload &>/dev/null \
-	&& { stat_done; } \
-	|| { stat_fail; exit 1; }
-	;;
-restart)
-	$0 stop
-	sleep 1
-	$0 start
-	;;
-*)
-	echo "usage: $0 {start|stop|restart|reload}"
-	;;
-esac
-exit 0



More information about the arch-commits mailing list