1997-11-16 04:57:27 +00:00
|
|
|
# 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$
|
1997-11-16 04:57:27 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:33:32 +00:00
|
|
|
PORTNAME= ifmail
|
|
|
|
PORTVERSION= 2.15
|
2004-10-27 04:34:53 +00:00
|
|
|
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}
|
1998-01-25 17:46:58 +00:00
|
|
|
MASTER_SITE_SUBDIR= system/fido
|
1997-11-16 04:57:27 +00:00
|
|
|
|
2001-06-24 04:28:57 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 18:26:42 +00:00
|
|
|
COMMENT= FidoNet(tm) support package for UN*X platform
|
1997-11-16 04:57:27 +00:00
|
|
|
|
|
|
|
MAN3= parsedate.3
|
|
|
|
MAN8= ifmail.8 iftoss.8
|
2003-08-04 05:44:29 +00:00
|
|
|
IFMAIL_RUNAS?= ifmail
|
|
|
|
PLIST_SUB+= IFMAIL_RUNAS="${IFMAIL_RUNAS}"
|
1997-11-16 04:57:27 +00:00
|
|
|
|
2002-01-05 23:43:13 +00:00
|
|
|
pre-configure:
|
2002-06-16 15:03:10 +00:00
|
|
|
@${MV} ${WRKSRC}/CONFIG ${WRKSRC}/CONFIG.sed
|
|
|
|
${SED} -e "s/OWNER = ifmail/OWNER = ${IFMAIL_RUNAS}/" \
|
2003-08-04 05:44:29 +00:00
|
|
|
-e "s#CC = gcc#CC = ${CC}#" \
|
2003-08-11 15:58:32 +00:00
|
|
|
-e "s#-O2 -Wall#${CFLAGS} -DHAS_STDARG_H -Wall#" \
|
2002-06-16 15:03:10 +00:00
|
|
|
${WRKSRC}/CONFIG.sed > ${WRKSRC}/CONFIG
|
2002-01-05 23:43:13 +00:00
|
|
|
|
1997-11-16 04:57:27 +00:00
|
|
|
pre-install:
|
2003-08-04 05:44:29 +00:00
|
|
|
if ! pw usershow ${IFMAIL_RUNAS}; then pw useradd ${IFMAIL_RUNAS} -g uucp -u 75 \
|
2002-01-05 23:43:13 +00:00
|
|
|
-h - -d /nonexistent -s /nonexistent -c "Ifmail Server"; fi
|
1997-11-16 04:57:27 +00:00
|
|
|
${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; \
|
2002-04-01 19:15:03 +00:00
|
|
|
${ECHO_CMD} "ifcico 60179/tcp #ifcico server (ifmail)") \
|
2007-08-06 10:34:12 +00:00
|
|
|
> ${ROOTDIR}/etc/services
|
1997-11-16 04:57:27 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-05 23:43:13 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
1997-11-16 04:57:27 +00:00
|
|
|
.for i in ifcico ifgate iflib
|
2002-01-05 23:43:13 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/README.${i}
|
1997-11-16 04:57:27 +00:00
|
|
|
.endfor
|
2008-05-30 17:09:01 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2002-01-05 23:43:13 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
|
1997-11-16 04:57:27 +00:00
|
|
|
.endif
|
|
|
|
|
2003-08-11 15:58:32 +00:00
|
|
|
.include <bsd.port.mk>
|