Hi glebius! I make a patch to rcNG-fy the net/mpd4. Please review and commit or may I commit this OK?
cvs add: files/mpd4.sh.in cvs remove: files/mpd4.sh cvs commit: Makefile pkg-plist ports/UPDATING
Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/mpd4/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 19 Mar 2006 07:49:21 -0000 1.5 +++ Makefile 23 Sep 2006 11:54:23 -0000 @@ -7,6 +7,7 @@ PORTNAME= mpd4 PORTVERSION= 4.0b4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= glebius @@ -22,6 +23,7 @@ MANCOMPRESSED= maybe USE_OPENSSL= yes +USE_RC_SUBR= mpd4.sh .include <bsd.port.pre.mk> @@ -29,7 +31,4 @@ IGNORE= does not compile on FreeBSD 4.x; use net/mpd instead .endif -post-install: - @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/mpd4.sh ${PREFIX}/etc/rc.d/mpd4.sh.sample - .include <bsd.port.post.mk> Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/net/mpd4/pkg-plist,v retrieving revision 1.2 diff -u -r1.2 pkg-plist --- pkg-plist 24 Jan 2006 09:28:21 -0000 1.2 +++ pkg-plist 23 Sep 2006 12:02:17 -0000 @@ -2,7 +2,6 @@ etc/mpd4/mpd.links.sample etc/mpd4/mpd.secret.sample etc/mpd4/mpd.script.sample -etc/rc.d/mpd4.sh.sample sbin/mpd4 share/doc/mpd4/README share/doc/mpd4/mpd.ps
Index: UPDATING =================================================================== RCS file: /home/ncvs/ports/UPDATING,v retrieving revision 1.397 diff -u -r1.397 UPDATING --- UPDATING 22 Sep 2006 09:24:04 -0000 1.397 +++ UPDATING 23 Sep 2006 11:59:59 -0000 @@ -6,6 +6,13 @@ time you update your ports collection, before attempting any port upgrades. +20060923: + AFFECTS: users of net/mpd4 + AUTHOR: [EMAIL PROTECTED] + + The mpd4 port must now be enabled / disabled and configured in + rc.conf. See the rcNG script for details. + 20060922: AFFECTS: users of mail/tmda AUTHOR: [EMAIL PROTECTED]
#!/bin/sh # # $FreeBSD$ # # PROVIDE: mpd4 # REQUIRE: netif mpd4_enable=${mpd4_enable-"NO"} mpd4_flags=${mpd4_flags-"-b"} mpd4_pidfile=${mpd4_pidfile-"/var/run/mpd4.pid"} . %%RC_SUBR%% name=mpd4 rcvar=`set_rcvar` command=%%PREFIX%%/sbin/mpd4 load_rc_config ${name} case "${mpd4_flags}" in *-p\ *) echo "Warning: \$mpd4_flags includes -p option." \ "Please use \$mpd4_pidfile instead." ;; *) mpd4_flags="-p ${mpd4_pidfile} ${mpd4_flags}" ;; esac pidfile=${mpd4_pidfile} run_rc_command "$1"
_______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"