blob: 8e258d58ed2de15dc89cc3016521073e6041ddb8 (
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
71
72
73
74
75
76
77
|
# $NetBSD: Makefile,v 1.23 2022/06/28 11:34:21 wiz Exp $
#
DISTNAME= fml-7.99.1
PKGREVISION= 4
CATEGORIES= mail
MASTER_SITES= ftp://ftp.fml.org/pub/fml8/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.fml.org/software/fml8/index.html.en
COMMENT= FML mailing list server development version
LICENSE= gnu-gpl-v2 OR artistic
USERGROUP_PHASE= pre-install
FML_STAMP= 7.99.1
GNU_CONFIGURE= yes
USE_TOOLS= perl:run
PLIST_SUBST+= FML_STAMP=${FML_STAMP} EGDIR=${EGDIR}
.include "../../mk/bsd.prefs.mk"
FMLDIR?= ${VARBASE}/fml
FML_GROUP?= fml
FML_USER?= fml
PKG_GROUPS_VARS+= FML_GROUP
PKG_USERS_VARS+= FML_USER
PKG_GROUPS= ${FML_GROUP}
PKG_USERS= ${FML_USER}:${FML_GROUP}
PKG_GECOS.${FML_USER}= FML mailing list owner
PKG_SYSCONFSUBDIR?= fml
EGDIR= share/examples/fml
INSTALLATION_DIRS+= ${EGDIR}
CONFS= main.cf mime_component_filter site_default_config.cf
.for f in ${CONFS}
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
OWN_DIRS_PERMS+= ${FMLDIR} ${FML_USER} ${FML_GROUP} 0755
CONFIGURE_ARGS+= --with-mlspooldir=${FMLDIR} \
--with-default-domain=example.net \
--with-default-hostname=mail \
--with-fml-owner=${FML_USER} \
--with-fml-group=${FML_GROUP}
CONFIGURE_ENV+= ac_cv_path_GZCAT=${GZCAT:Q} \
ac_cv_path_PERL=${PERL5:Q}
MAKE_ENV+= install_root=${DESTDIR} PERL=${PERL5}
PRINT_PLIST_AWK+= /share\/examples\/fml/ \
{ gsub(/share\/examples\/fml/, "$${EGDIR}"); } \
/${FML_STAMP}/ \
{ gsub(/${FML_STAMP}/, "$${FML_STAMP}"); }
CHECK_INTERPRETER_SKIP+= lib/fml/${FML_STAMP}/* \
libexec/fml/${FML_STAMP}/loader.in
SUBST_CLASSES+= fixpaths
SUBST_STAGE.fixpaths= post-build
SUBST_FILES.fixpaths= fml/etc/install.cf
SUBST_SED.fixpaths= -e 's,${WRAPPER_BINDIR}/cc,${CCPATH},g'
pre-configure:
${ECHO} ${FML_STAMP} > ${WRKSRC}/.version
post-install:
.for f in ${CONFS}
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/${f} ${DESTDIR}${PREFIX}/${EGDIR}/${f}
.endfor
.include "../../mk/bsd.pkg.mk"
|