diff --git a/sysutils/iocage/Makefile b/sysutils/iocage/Makefile index ecdce4ff2e96..28138e8424cf 100644 --- a/sysutils/iocage/Makefile +++ b/sysutils/iocage/Makefile @@ -3,6 +3,7 @@ PORTNAME= iocage PORTVERSION= 1.6.1 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= robak@FreeBSD.org @@ -14,10 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= pannon -PLIST_FILES= etc/rc.d/iocage \ - sbin/iocage \ - man/man8/iocage.8.gz - .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 900044 @@ -26,9 +23,16 @@ BROKEN= This port works only on FreeBSD 9 and newer NO_BUILD= yes +post-patch: + @${REINPLACE_CMD} -e "s|/usr/local/lib/iocage|${PREFIX}/lib/iocage|g" ${WRKSRC}/iocage + +pre-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/iocage + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/iocage ${STAGEDIR}${PREFIX}/etc/rc.d ${INSTALL_SCRIPT} ${WRKSRC}/iocage ${STAGEDIR}${PREFIX}/sbin + (cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/iocage) ${INSTALL_MAN} ${WRKSRC}/iocage.8 ${STAGEDIR}${PREFIX}/man/man8 .include diff --git a/sysutils/iocage/pkg-plist b/sysutils/iocage/pkg-plist new file mode 100644 index 000000000000..b2e0ab9a2857 --- /dev/null +++ b/sysutils/iocage/pkg-plist @@ -0,0 +1,17 @@ +etc/rc.d/iocage +lib/iocage/ioc-cmd +lib/iocage/ioc-common +lib/iocage/ioc-configure +lib/iocage/ioc-globals +lib/iocage/ioc-hacks +lib/iocage/ioc-help +lib/iocage/ioc-image +lib/iocage/ioc-info +lib/iocage/ioc-network +lib/iocage/ioc-rc +lib/iocage/ioc-rctl +lib/iocage/ioc-snapshot +lib/iocage/ioc-upgrade +lib/iocage/ioc-zfs +man/man8/iocage.8.gz +sbin/iocage