blob: 2693516df446ec3f04f8c24f2b4c6899c4f3b539 (
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.15 2016/09/12 15:52:49 taca Exp $
#
DISTNAME= fml-7.98.18-${FML_STAMP}
PKGNAME= ${DISTNAME:S/-${FML_STAMP}/.${FML_STAMP}/}
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
# development version
FML_STAMP= 20121230
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-sysconfdir=${PKG_SYSCONFDIR} \
--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+= /${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"
|