Index: head/net/mpd5/Makefile =================================================================== --- head/net/mpd5/Makefile (revision 546945) +++ head/net/mpd5/Makefile (revision 546946) @@ -1,51 +1,51 @@ # Created by: Archie Cobbs # $FreeBSD$ PORTNAME= mpd DISTVERSION= 5.8 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION} PKGNAMESUFFIX= 5 DIST_SUBDIR= mpd5 MAINTAINER= eugen@FreeBSD.org COMMENT= Multi-link PPP daemon based on netgraph(4) LICENSE= BSD3CLAUSE OPTIONS_DEFINE= DOCS NG_IPACCT NG_IPACCT_DESC= Use ng_ipacct kernel module from port HAS_CONFIGURE= YES CONFIGURE_WRKSRC= "${WRKSRC}/src" USES= ssl .include MAKE_ARGS+= OSVERSION=${OSVERSION} .if ${PORT_OPTIONS:MNG_IPACCT} BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_ipacct.h:net-mgmt/ng_ipacct .if exists(${KMODDIR}/ng_ipacct.ko) RUN_DEPENDS+= ${KMODDIR}/ng_ipacct.ko:net-mgmt/ng_ipacct .else RUN_DEPENDS+= /boot/modules/ng_ipacct.ko:net-mgmt/ng_ipacct .endif .else CONFIGURE_ENV+= USE_NG_IPACCT=no EXTRA_PATCHES+= ${FILESDIR}/extra-patch-no-ng_ipacct .endif USE_RC_SUBR= mpd5 CONFSUF= conf secret script DOCSDIR= ${PREFIX}/share/doc/mpd5 PORTDOCS= README mpd* PLIST_FILES= ${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5 .if !defined(WITHOUT_MAN) PLIST_FILES+= man/man8/mpd5.8.gz .endif .include Index: head/net/mpd5/files/mpd5.in =================================================================== --- head/net/mpd5/files/mpd5.in (revision 546945) +++ head/net/mpd5/files/mpd5.in (revision 546946) @@ -1,43 +1,42 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: mpd5 # REQUIRE: netif # BEFORE: routing # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable mpd5: # mpd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mpd5. # mpd_flags (string): Set to "-b" by default. # Extra flags passed to start command. # # See mpd5(8) for flags. . /etc/rc.subr name="mpd5" rcvar=mpd_enable load_rc_config ${name} : ${mpd_enable="NO"} : ${mpd_flags="-b"} pidfile="/var/run/${name}.pid" command="%%PREFIX%%/sbin/${name}" -required_files="%%PREFIX%%/etc/${name}/mpd.conf" case "${mpd_flags}" in *-p\ *) echo "ERROR: \$mpd_flags includes -p option." \ "PID file is already set to $pidfile." exit 1 ;; *) command_args="-p ${pidfile} ${mpd_flags}" ;; esac run_rc_command "$1"