blob: 7159f368ca20e395299d0350ec13dafbb041bc75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.76 2019/05/23 19:22:57 rillig Exp $
DISTNAME= fidogate-4.4.10
PKGREVISION= 11
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fidogate/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fidogate.sourceforge.net/
COMMENT= FidoNet (FTN) <-> Internet mail and news gateway
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake makeinfo perl:run yacc
MAKE_ENV+= DEBUG=${CFLAGS:Q}" -Werror"
EGDIR= ${PREFIX}/share/examples/fidogate
CONF_FILES= ${EGDIR}/fidogate.conf ${PKG_SYSCONFDIR}/fidogate/fidogate.conf
RCD_SCRIPTS= fidogate
RCD_SCRIPT_SRC.fidogate= ${WRKSRC}/scripts/maintenance/rc.fidogate
INFO_FILES= yes # PLIST
PKG_GROUPS= news
PKG_USERS= news:news
PKG_GECOS.news= Network News
PKG_HOME.news= /var/spool/news
NO_CONFIGURE= yes
SUBST_CLASSES+= paths
SUBST_FILES.paths= config.make
SUBST_VARS.paths= PREFIX
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_VARS.paths+= PKGINFODIR
SUBST_SED.paths+= -e "s,@PERL@,${TOOLS_PATH.perl},g"
SUBST_STAGE.paths= pre-build
# Too many schar/uchar issues.
BUILDLINK_TRANSFORM+= rm:-Werror
OWN_DIRS= ${PKG_SYSCONFDIR}/fidogate
AUTO_MKDIRS= yes
FIDOGATE_SUID_PERMS= news news 4111
SPECIAL_PERMS+= ${PREFIX}/lib/fidogate/ffx ${FIDOGATE_SUID_PERMS} \
${PREFIX}/lib/fidogate/ftnmail ${FIDOGATE_SUID_PERMS} \
${PREFIX}/lib/fidogate/ftnafmail ${FIDOGATE_SUID_PERMS}
post-extract:
${CP} ${WRKSRC}/examples/orodruin/fidogate.conf \
${WRKSRC}/fidogate.conf.dist
pre-build:
${RM} -f ${WRKSRC}/doc/fidogate.info*
cd ${WRKSRC}/doc && makeinfo fidogate.texi && \
${TOUCH} fidogate.txt html/fidogate_toc.html
${PERL5} ${WRKSRC}/subst.pl -t${WRKSRC} ${WRKSRC}/fidogate.conf.dist \
>${WRKSRC}/fidogate.conf
post-install:
cd ${WRKSRC}/examples && for f in `${FIND} [m-p]* -type d -print`; do \
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
cd ${WRKSRC}/examples && for f in `${FIND} README [m-p]* -type f -print`; do \
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
cd ${WRKSRC}/sendmail/mailer && ${INSTALL_DATA} ffx.m4 ftn.m4 \
${DESTDIR}${PREFIX}/share/fidogate/sendmail/mailer
${INSTALL_DATA} ${WRKSRC}/doc/fidogate.txt ${DESTDIR}${PREFIX}/share/doc/fidogate
${INSTALL_DATA} ${WRKSRC}/fidogate.conf ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"
|