mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
Patch the upstream's install-targets instead of providing our own.
No (real) changes to package.
This commit is contained in:
parent
1721e5a045
commit
9507440e4c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413224
@ -17,35 +17,18 @@ NOSTROMO_LOGDIR_PERMS?= 0775
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USE_RC_SUBR= nostromo
|
||||
USES= uidfix
|
||||
|
||||
MAKE_ENV?= MAKEOBJDIR=. PREFIX=${PREFIX} NOSTROMO_DIR=${NOSTROMO_DIR}
|
||||
MAKE_ENV?= MAKEOBJDIR=. NOSTROMO_DIR=${NOSTROMO_DIR} MANDIR=${PREFIX}/man/man
|
||||
PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}"
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
|
||||
${WRKSRC}/src/nhttpd/nhttpd.8
|
||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
|
||||
${WRKSRC}/src/nhttpd/main.c
|
||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
|
||||
${WRKSRC}/src/nhttpd/nhttpd.8 \
|
||||
${WRKSRC}/src/nhttpd/main.c \
|
||||
${WRKSRC}/conf/nhttpd.conf-dist
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/nhttpd/nhttpd ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${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 \
|
||||
${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
|
||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}@g" \
|
||||
-e "s@-o [^ ]* -g [^ ]*@ -o ${BINOWN} -g ${BINGRP}@" \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +1,8 @@
|
||||
--- src/nhttpd/Makefile 2016-04-12 15:02:06.000000000 -0400
|
||||
+++ src/nhttpd/Makefile 2016-04-13 12:29:49.861046000 -0400
|
||||
@@ -13,8 +13,15 @@
|
||||
BINOWN= root
|
||||
-BINOWN= root
|
||||
+BINOWN?= root
|
||||
BINMOD= 0555
|
||||
-BINDIR= /usr/local/sbin
|
||||
+BINDIR= ${PREFIX}/sbin
|
||||
|
@ -1,7 +1,8 @@
|
||||
--- src/tools/Makefile 2016-04-12 15:02:58.000000000 -0400
|
||||
+++ src/tools/Makefile 2016-04-13 12:33:40.546452000 -0400
|
||||
@@ -12,5 +12,5 @@
|
||||
BINOWN= root
|
||||
-BINOWN= root
|
||||
+BINOWN?= root
|
||||
BINMOD= 0555
|
||||
-BINDIR= /usr/local/sbin
|
||||
+BINDIR= ${PREFIX}/sbin
|
||||
|
@ -2,7 +2,7 @@ man/man8/nhttpd.8.gz
|
||||
sbin/crypt
|
||||
sbin/nhttpd
|
||||
%%NOSTROMODIR%%/conf/mimes
|
||||
@sample %%NOSTROMODIR%%/conf/nhttpd.conf.sample
|
||||
@sample %%NOSTROMODIR%%/conf/nhttpd.conf-dist
|
||||
%%NOSTROMODIR%%/htdocs/index.html
|
||||
%%NOSTROMODIR%%/htdocs/nostromo.gif
|
||||
%%NOSTROMODIR%%/htdocs/cgi-bin/printenv
|
||||
|
Loading…
Reference in New Issue
Block a user