diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2013-09-10 20:28:30 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2013-09-10 20:28:30 +0000 |
commit | e65fc3bbc1366cdcd2563924f16f9a9860daf3fa (patch) | |
tree | e8512c2d2afd461646f258e9a8771ce47e777718 | |
parent | 75911882389a09e4211f21ccdcff43a239bffef1 (diff) | |
download | ports-e65fc3bbc1366cdcd2563924f16f9a9860daf3fa.tar.gz ports-e65fc3bbc1366cdcd2563924f16f9a9860daf3fa.zip |
Notes
-rw-r--r-- | www/nostromo/Makefile | 39 | ||||
-rw-r--r-- | www/nostromo/files/patch-src-libmy-strb64d.c | 11 | ||||
-rw-r--r-- | www/nostromo/pkg-plist | 28 |
3 files changed, 46 insertions, 32 deletions
diff --git a/www/nostromo/Makefile b/www/nostromo/Makefile index a5e1d3f0a35b..89e3c104aae5 100644 --- a/www/nostromo/Makefile +++ b/www/nostromo/Makefile @@ -1,12 +1,9 @@ -# New ports collection makefile for: nostromo -# Date created: 20 Mar 2011 -# Whom: Adrian Steinmann <ast@marabu.ch> -# +# Created by: Adrian Steinmann <ast@marabu.ch> # $FreeBSD$ -# PORTNAME= nostromo PORTVERSION= 1.9.5 +PORTREVISION= 1 CATEGORIES= www ipv6 MASTER_SITES= http://www.nazgul.ch/dev/ @@ -15,7 +12,7 @@ COMMENT= A fast, secure HTTP/1.1 CGI/1.1 SSL IPv4/IPv6 webserver LICENSE= BSD -NOSTROMO_DIR?= ${PREFIX}/nostromo +NOSTROMO_DIR?= nostromo NOSTROMO_LOGDIR?= ${NOSTROMO_DIR}/logs NOSTROMO_LOGDIR_PERMS?= 0775 @@ -24,6 +21,7 @@ USE_RC_SUBR= nostromo MAN8= nhttpd.8 MAKE_ENV?= MAKEOBJDIR=. PREFIX=${PREFIX} NOSTROMO_DIR=${NOSTROMO_DIR} +PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}" post-extract: @${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \ @@ -37,19 +35,22 @@ 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} ${NOSTROMO_DIR} - @${MKDIR} ${NOSTROMO_DIR}/conf - @${MKDIR} -m ${NOSTROMO_LOGDIR_PERMS} -p ${NOSTROMO_LOGDIR} - @${INSTALL_DATA} ${WRKSRC}/conf/mimes ${NOSTROMO_DIR}/conf - @${INSTALL_DATA} ${WRKSRC}/conf/nhttpd.conf-dist ${NOSTROMO_DIR}/conf - @${MKDIR} ${NOSTROMO_DIR}/htdocs - @${INSTALL_DATA} ${WRKSRC}/htdocs/index.html ${NOSTROMO_DIR}/htdocs - @${INSTALL_DATA} ${WRKSRC}/htdocs/nostromo.gif ${NOSTROMO_DIR}/htdocs - @${MKDIR} ${NOSTROMO_DIR}/htdocs/cgi-bin + @${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}/htdocs/cgi-bin/printenv \ - ${NOSTROMO_DIR}/htdocs/cgi-bin - @${MKDIR} ${NOSTROMO_DIR}/icons - @${INSTALL_DATA} ${WRKSRC}/icons/dir.gif ${NOSTROMO_DIR}/icons - @${INSTALL_DATA} ${WRKSRC}/icons/file.gif ${NOSTROMO_DIR}/icons + ${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 .include <bsd.port.mk> diff --git a/www/nostromo/files/patch-src-libmy-strb64d.c b/www/nostromo/files/patch-src-libmy-strb64d.c new file mode 100644 index 000000000000..471adf42d35b --- /dev/null +++ b/www/nostromo/files/patch-src-libmy-strb64d.c @@ -0,0 +1,11 @@ +--- src/libmy/strb64d.c.orig 2005-06-04 10:30:04.000000000 +0200 ++++ src/libmy/strb64d.c 2013-08-23 19:17:25.700331962 +0200 +@@ -54,7 +54,7 @@ + dst[0] = '\0'; + + while (1) { +- for (i = 0, j = j; i < 4; i++, j++) { ++ for (i = 0; i < 4; i++, j++) { + if (src[j] == '\0') + goto quit; + ch = src[j]; diff --git a/www/nostromo/pkg-plist b/www/nostromo/pkg-plist index 9ec6003d2d52..1ac2d6e5bcd7 100644 --- a/www/nostromo/pkg-plist +++ b/www/nostromo/pkg-plist @@ -1,15 +1,17 @@ sbin/crypt sbin/nhttpd -nostromo/conf/mimes -nostromo/conf/nhttpd.conf-dist -nostromo/htdocs/index.html -nostromo/htdocs/nostromo.gif -nostromo/htdocs/cgi-bin/printenv -nostromo/icons/dir.gif -nostromo/icons/file.gif -@dirrmtry nostromo/conf -@dirrmtry nostromo/htdocs/cgi-bin -@dirrmtry nostromo/htdocs -@dirrmtry nostromo/icons -@dirrmtry nostromo/logs -@dirrmtry nostromo +%%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 +%%NOSTROMODIR%%/htdocs/index.html +%%NOSTROMODIR%%/htdocs/nostromo.gif +%%NOSTROMODIR%%/htdocs/cgi-bin/printenv +%%NOSTROMODIR%%/icons/dir.gif +%%NOSTROMODIR%%/icons/file.gif +@dirrmtry %%NOSTROMODIR%%/conf +@dirrmtry %%NOSTROMODIR%%/htdocs/cgi-bin +@dirrmtry %%NOSTROMODIR%%/htdocs +@dirrmtry %%NOSTROMODIR%%/icons +@dirrmtry %%NOSTROMODIR%%/logs +@dirrmtry %%NOSTROMODIR%% |