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