diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-07-19 23:43:54 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-07-19 23:43:54 +0800 |
commit | 9da129f36385e0416dd949e4a3903c8f1a0e8fe3 (patch) | |
tree | acb0e375e34f16c442e1bad4b75a980117a21c64 /www | |
parent | a19869ef625ce275559d742f847c4c718547754a (diff) | |
download | freebsd-ports-gnome-9da129f36385e0416dd949e4a3903c8f1a0e8fe3.tar.gz freebsd-ports-gnome-9da129f36385e0416dd949e4a3903c8f1a0e8fe3.tar.zst freebsd-ports-gnome-9da129f36385e0416dd949e4a3903c8f1a0e8fe3.zip |
1: Stagify.
2: use @sample, bump version.
Diffstat (limited to 'www')
-rw-r--r-- | www/nostromo/Makefile | 40 | ||||
-rw-r--r-- | www/nostromo/pkg-plist | 5 |
2 files changed, 19 insertions, 26 deletions
diff --git a/www/nostromo/Makefile b/www/nostromo/Makefile index 95792f22e719..25224614ebfe 100644 --- a/www/nostromo/Makefile +++ b/www/nostromo/Makefile @@ -3,7 +3,7 @@ PORTNAME= nostromo PORTVERSION= 1.9.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www ipv6 MASTER_SITES= http://www.nazgul.ch/dev/ @@ -18,12 +18,9 @@ NOSTROMO_LOGDIR_PERMS?= 0775 USE_RC_SUBR= nostromo -MAN8= nhttpd.8 - MAKE_ENV?= MAKEOBJDIR=. PREFIX=${PREFIX} NOSTROMO_DIR=${NOSTROMO_DIR} PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}" -NO_STAGE= yes post-extract: @${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \ ${WRKSRC}/src/nhttpd/nhttpd.8 @@ -33,25 +30,22 @@ post-extract: ${WRKSRC}/conf/nhttpd.conf-dist do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/src/nhttpd/nhttpd ${PREFIX}/sbin - @${INSTALL_SCRIPT} ${WRKSRC}/src/tools/crypt ${PREFIX}/sbin - @${INSTALL_MAN} ${WRKSRC}/src/nhttpd/nhttpd.8 ${PREFIX}/man/man8 - @${MKDIR} ${PREFIX}/${NOSTROMO_DIR} - @${MKDIR} ${PREFIX}/${NOSTROMO_DIR}/conf - @${MKDIR} -m ${NOSTROMO_LOGDIR_PERMS} -p ${PREFIX}/${NOSTROMO_LOGDIR} - @${INSTALL_DATA} ${WRKSRC}/conf/mimes ${PREFIX}/${NOSTROMO_DIR}/conf - @${INSTALL_DATA} ${WRKSRC}/conf/nhttpd.conf-dist ${PREFIX}/${NOSTROMO_DIR}/conf - if [ ! -f ${PREFIX}/${NOSTROMO_DIR}/conf/nhttpd.conf ]; then \ - ${CP} -p ${PREFIX}/${NOSTROMO_DIR}/conf/nhttpd.conf-dist ${PREFIX}/${NOSTROMO_DIR}/conf/nhttpd.conf ; \ - fi - @${MKDIR} ${PREFIX}/${NOSTROMO_DIR}/htdocs - @${INSTALL_DATA} ${WRKSRC}/htdocs/index.html ${PREFIX}/${NOSTROMO_DIR}/htdocs - @${INSTALL_DATA} ${WRKSRC}/htdocs/nostromo.gif ${PREFIX}/${NOSTROMO_DIR}/htdocs - @${MKDIR} ${PREFIX}/${NOSTROMO_DIR}/htdocs/cgi-bin + @${INSTALL_SCRIPT} ${WRKSRC}/src/nhttpd/nhttpd ${STAGEDIR}${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/src/tools/crypt ${STAGEDIR}${PREFIX}/sbin + @${INSTALL_MAN} ${WRKSRC}/src/nhttpd/nhttpd.8 ${STAGEDIR}${PREFIX}/man/man8 + @${MKDIR} ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/conf + @${MKDIR} -m ${NOSTROMO_LOGDIR_PERMS} -p ${STAGEDIR}${PREFIX}/${NOSTROMO_LOGDIR} + @${INSTALL_DATA} ${WRKSRC}/conf/mimes ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/conf + @${INSTALL_DATA} ${WRKSRC}/conf/nhttpd.conf-dist ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/conf/nhttpd.conf.sample + @${MKDIR} ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/htdocs + @${INSTALL_DATA} ${WRKSRC}/htdocs/index.html ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/htdocs + @${INSTALL_DATA} ${WRKSRC}/htdocs/nostromo.gif ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/htdocs + @${MKDIR} ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/htdocs/cgi-bin @${INSTALL_SCRIPT} ${WRKSRC}/htdocs/cgi-bin/printenv \ - ${PREFIX}/${NOSTROMO_DIR}/htdocs/cgi-bin - @${MKDIR} ${PREFIX}/${NOSTROMO_DIR}/icons - @${INSTALL_DATA} ${WRKSRC}/icons/dir.gif ${PREFIX}/${NOSTROMO_DIR}/icons - @${INSTALL_DATA} ${WRKSRC}/icons/file.gif ${PREFIX}/${NOSTROMO_DIR}/icons + ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/htdocs/cgi-bin + @${MKDIR} ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/icons + @${INSTALL_DATA} ${WRKSRC}/icons/dir.gif ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/icons + @${INSTALL_DATA} ${WRKSRC}/icons/file.gif ${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}/icons .include <bsd.port.mk> diff --git a/www/nostromo/pkg-plist b/www/nostromo/pkg-plist index 1ac2d6e5bcd7..75c2964292cc 100644 --- a/www/nostromo/pkg-plist +++ b/www/nostromo/pkg-plist @@ -1,9 +1,8 @@ +man/man8/nhttpd.8.gz sbin/crypt sbin/nhttpd %%NOSTROMODIR%%/conf/mimes -@unexec if cmp -s %D/%%NOSTROMODIR%%/conf/nhttpd.conf-dist %D/%%NOSTROMODIR%%/conf/nhttpd.conf; then rm -f %D/%%NOSTROMODIR%%/conf/nhttpd.conf; fi -%%NOSTROMODIR%%/conf/nhttpd.conf-dist -@exec if [ ! -f %D/%%NOSTROMODIR%%/conf/nhttpd.conf ] ; then cp -p %D/%F %B/nhttpd.conf; fi +@sample %%NOSTROMODIR%%/conf/nhttpd.conf.sample %%NOSTROMODIR%%/htdocs/index.html %%NOSTROMODIR%%/htdocs/nostromo.gif %%NOSTROMODIR%%/htdocs/cgi-bin/printenv |