Index: head/net/pimd/Makefile =================================================================== --- head/net/pimd/Makefile +++ head/net/pimd/Makefile @@ -1,22 +1,29 @@ # $FreeBSD$ PORTNAME= pimd -PORTVERSION= 2.2.0 +PORTVERSION= 2.3.2 CATEGORIES= net MAINTAINER= olivier@FreeBSD.org COMMENT= Lightweight stand-alone PIM-SM v2 multicast routing daemon LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= troglobit +GH_PROJECT= libite:libite +GH_TAGNAME= v1.4.4:libite USES= tar:bzip2 +USE_RC_SUBR= ${PORTNAME} + HAS_CONFIGURE= yes +MAKE_ARGS+= prefix="${PREFIX}" sysconfdir="${PREFIX}/etc/" -post-patch: - ${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/pathnames.h +post-extract: + cd ${WRKSRC} && ${RMDIR} libite && \ + ${MV} ${WRKSRC_libite} ${WRKSRC}/libite do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pimd ${STAGEDIR}${PREFIX}/sbin/ Index: head/net/pimd/distinfo =================================================================== --- head/net/pimd/distinfo +++ head/net/pimd/distinfo @@ -1,2 +1,4 @@ -SHA256 (troglobit-pimd-2.2.0_GH0.tar.gz) = a6d969e235323852afdd1c9aebc15a2ff1e4da75e8277a736b3be9b2b484e30e -SIZE (troglobit-pimd-2.2.0_GH0.tar.gz) = 223012 +SHA256 (troglobit-pimd-2.3.2_GH0.tar.gz) = b6cda75a55952fac06fdc50a95ab7ee2f94f8568de365c49c49a2acf078488eb +SIZE (troglobit-pimd-2.3.2_GH0.tar.gz) = 237277 +SHA256 (troglobit-libite-v1.4.4_GH0.tar.gz) = c4327e7d3ade7efb191d02a4f9ffaf7b8e86e7e7f91a2f7e8b600e2102330607 +SIZE (troglobit-libite-v1.4.4_GH0.tar.gz) = 36086 Index: head/net/pimd/files/pimd.in =================================================================== --- head/net/pimd/files/pimd.in +++ head/net/pimd/files/pimd.in @@ -12,15 +12,13 @@ . /etc/rc.subr -pimd_enable=${pimd_enable-"NO"} - name="pimd" -rcvar=${name}_enable - -command="/usr/local/sbin/${name}" - +rcvar="${name}_enable" +command="%%PREFIX%%/sbin/${name}" +required_files="%%PREFIX%%/etc/${name}.conf" extra_commands=reload load_rc_config $name +: ${pimd_enable="NO"} run_rc_command "$1" Index: head/net/pimd/pkg-plist =================================================================== --- head/net/pimd/pkg-plist +++ head/net/pimd/pkg-plist @@ -1,4 +1,3 @@ @sample etc/pimd.conf.sample -etc/rc.d/pimd sbin/pimd man/man8/pimd.8.gz