1PORTNAME= chroot_safe 2PORTVERSION= 1.4 3PORTREVISION= 2 4CATEGORIES= security sysutils 5MASTER_SITES= SF/chrootsafe/${PORTNAME}/${PORTVERSION} 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Tool to chroot softwares easily 9WWW= https://sourceforge.net/projects/chrootsafe/ 10 11LICENSE= mit 12 13USES= tar:tgz 14GNU_CONFIGURE= yes 15 16PLIST_FILES= sbin/chroot_safe libexec/chroot_safe/chroot_safe.so \ 17 share/man/man1/chroot_safe.1.gz 18PLIST_DIRS= libexec/chroot_safe 19 20post-patch: 21 @${REINPLACE_CMD} -e 's|CXX=g++|CXX?=c++|' \ 22 -e 's|-o chroot_safe.so|chroot_safe.cpp -o chroot_safe.so|' \ 23 ${WRKSRC}/Makefile.in 24 @${REINPLACE_CMD} 's|chroot(1)|chroot(8)|' ${WRKSRC}/chroot_safe.1.in 25 @${REINPLACE_CMD} 's|putenv|unsetenv|' ${WRKSRC}/chroot_safe.cpp 26 27.include <bsd.port.mk> 28