1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/news/ifmail/Makefile

60 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ifmail
# Date created: 19 Feb 1997
# Whom: dirk.meyer@dinoex.sub.org
#
1999-08-30 14:33:04 +00:00
# $FreeBSD$
#
PORTNAME= ifmail
PORTVERSION= 2.15
PORTREVISION= 5
2008-05-30 17:09:01 +00:00
CATEGORIES= news comms
2001-08-23 06:09:44 +00:00
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/fido
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 18:26:42 +00:00
COMMENT= FidoNet(tm) support package for UN*X platform
MAN3= parsedate.3
MAN8= ifmail.8 iftoss.8
IFMAIL_RUNAS?= ifmail
PLIST_SUB+= IFMAIL_RUNAS="${IFMAIL_RUNAS}"
pre-configure:
2002-06-16 15:03:10 +00:00
@${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#" \
2002-06-16 15:03:10 +00:00
${WRKSRC}/CONFIG.sed > ${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
post-install:
.for i in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${PREFIX}/man/man8
.endfor
.for i in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${PREFIX}/man/man3
.endfor
2007-08-06 10:34:12 +00:00
@${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)") \
2007-08-06 10:34:12 +00:00
> ${ROOTDIR}/etc/services
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.for i in ifcico ifgate iflib
${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/README.${i}
.endfor
2008-05-30 17:09:01 +00:00
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
.endif
.include <bsd.port.mk>