mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- use STAGEDIR
This commit is contained in:
parent
5beec96978
commit
4132656f31
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337142
@ -10,7 +10,7 @@ MASTER_SITE_SUBDIR= system/fido
|
||||
MAINTAINER= dinoex@FreeBSD.org
|
||||
COMMENT= FidoNet(tm) support package for UN*X platform
|
||||
|
||||
NO_STAGE= yes
|
||||
NEED_ROOT= yes
|
||||
|
||||
MAN3= parsedate.3
|
||||
MAN8= ifmail.8 iftoss.8
|
||||
@ -19,40 +19,41 @@ PLIST_SUB+= IFMAIL_RUNAS="${IFMAIL_RUNAS}"
|
||||
# USERS does not work here
|
||||
#USERS= ifmail
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
pre-configure:
|
||||
@${MV} ${WRKSRC}/CONFIG ${WRKSRC}/CONFIG.sed
|
||||
${SED} -e "s/OWNER = ifmail/OWNER = ${IFMAIL_RUNAS}/" \
|
||||
-e "s#CC = gcc#CC = ${CC}#" \
|
||||
-e "s#-O2 -Wall#${CFLAGS} -DHAS_STDARG_H -Wall#" \
|
||||
${WRKSRC}/CONFIG.sed > ${WRKSRC}/CONFIG
|
||||
${REINPLACE_CMD} -e 's|OWNER = ifmail|OWNER = ${IFMAIL_RUNAS}|' \
|
||||
-e 's|CC = gcc|CC = ${CC}|' \
|
||||
-e 's|-O2 -Wall|${CFLAGS} -DHAS_STDARG_H -Wall|' \
|
||||
${WRKSRC}/CONFIG
|
||||
|
||||
pre-install:
|
||||
if ! pw usershow ${IFMAIL_RUNAS}; then pw useradd ${IFMAIL_RUNAS} -g uucp -u 75 \
|
||||
-h - -d /nonexistent -s /nonexistent -c "Ifmail Server"; fi
|
||||
${MKDIR} ${PREFIX}/libexec/ifmail
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ifmail
|
||||
|
||||
post-install:
|
||||
.for i in ${MAN8}
|
||||
${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${PREFIX}/man/man8
|
||||
${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${STAGEDIR}${PREFIX}/man/man8/
|
||||
.endfor
|
||||
.for i in ${MAN3}
|
||||
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${PREFIX}/man/man3
|
||||
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${STAGEDIR}${PREFIX}/man/man3/
|
||||
.endfor
|
||||
@${ECHO_CMD} "updating ${ROOTDIR}/etc/services"
|
||||
@${CP} ${ROOTDIR}/etc/services ${ROOTDIR}/etc/services.bak
|
||||
@(grep -v ^ifcico ${ROOTDIR}/etc/services.bak; \
|
||||
${ECHO_CMD} "ifcico 60179/tcp #ifcico server (ifmail)") \
|
||||
> ${ROOTDIR}/etc/services
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
|
||||
.for i in ifcico ifgate iflib
|
||||
${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/README.${i}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i}/README ${STAGEDIR}${DOCSDIR}/README.${i}
|
||||
.endfor
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
@${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${STAGEDIR}${EXAMPLESDIR} -xf -
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -73,7 +73,7 @@
|
||||
|
||||
# for make install, where to put binaries and what owner to set
|
||||
-BINDIR = /usr/lib/ifmail
|
||||
+BINDIR = ${PREFIX}/libexec/ifmail
|
||||
+BINDIR = ${DESTDIR}${PREFIX}/libexec/ifmail
|
||||
OWNER = ifmail
|
||||
GROUP = uucp
|
||||
MODE = 0711
|
||||
|
@ -1,3 +1,6 @@
|
||||
man/man3/parsedate.3.gz
|
||||
man/man8/ifmail.8.gz
|
||||
man/man8/iftoss.8.gz
|
||||
@exec if ! pw usershow %%IFMAIL_RUNAS%% 2>/dev/null; then pw useradd %%IFMAIL_RUNAS%% -g uucp -u 75 -h - -d /nonexistent -s /nonexistent -c "Ifmail Server"; fi
|
||||
@unexec if pw usershow %%IFMAIL_RUNAS%% | grep -q 75:66; then pw userdel %%IFMAIL_RUNAS%%; fi
|
||||
@owner ifmail
|
||||
|
Loading…
Reference in New Issue
Block a user