PORTNAME= libpfctl PORTVERSION= 0.15 CATEGORIES= net MASTER_SITES= LOCAL/kp/ MAINTAINER= kp@FreeBSD.org COMMENT= Library for interaction with pf(4) WWW= https://cgit.freebsd.org/src/tree/lib/libpfctl LICENSE= BSD2CLAUSE USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/libpfctl _LIBPFCTL_HASH= 9efd215411bb _LIBPFCTL_REV= 4 PLIST_FILES= \ lib/libpfctl.so \ lib/libpfctl.so.0 \ include/libpfctl.h .include .if ${OSREL} == "15.0" DISTFILES= libpfctl-${_LIBPFCTL_HASH}.tar.gz .else DISTFILES= libpfctl-${OSREL}_${_LIBPFCTL_REV}.tar.gz .endif do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib @${MKDIR} ${STAGEDIR}${PREFIX}/include ${INSTALL_LIB} ${WRKSRC}/libpfctl.so.0 ${STAGEDIR}${PREFIX}/lib ${LN} -s libpfctl.so.0 ${STAGEDIR}${PREFIX}/lib/libpfctl.so ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include .if defined(MAINTAINER_MODE) upload: for version in 13.3 13.4 14.0 14.1 14.2; \ do \ cd /usr/src/lib && \ git archive --format=tar.gz \ --output=libpfctl-$${version}_${_LIBPFCTL_REV}.tar.gz \ libpfctl/$${version} libpfctl ; \ done cd /usr/src/lib && \ git archive --format=tar.gz \ --output=libpfctl-${_LIBPFCTL_HASH}.tar.gz \ ${_LIBPFCTL_HASH} libpfctl ; .endif .include