blob: 1838fe46277474296bf1bf7e14b9357f85e9c9a5 (
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
|
# $NetBSD: Makefile,v 1.18 2002/01/02 11:57:01 tron Exp $
DISTNAME= squirrelmail-1.0.6
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squirrelmail/} \
http://nerf-herder.net/squirrel/ \
ftp://nerf-herder.net/pub/squirrel/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.squirrelmail.org/
COMMENT= PHP4 webmail package
DEPENDS+= php-4.0.[6-9]*:../../www/php4
DEPENDS+= php-session-4.0.[6-9]*:../../devel/php4-session
USE_PERL5= # defined
NO_CONFIGURE= # defined
NO_BUILD= # defined
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/squirrelmail
SMDIR= ${PREFIX}/share/squirrelmail
DATADIR= /var/spool/squirrelmail
MESSAGE_SUBST+= SMDIR=${SMDIR}
FILES_SUBST+= SMDIR=${SMDIR}
CONF_FILES= ${SMDIR}/config/config_default.php ${SMDIR}/config/config.php
CONF_FILES+= ${SMDIR}/data/default_pref ${DATADIR}/data/default_pref
CONF_FILES+= ${EGDIR}/squirrelmail.conf ${PKG_SYSCONFDIR}/squirrelmail.conf
OWN_DIRS= ${DATADIR}
OWN_DIRS+= ${SMDIR} ${SMDIR}/config
OWN_DIRS_PERMS= ${DATADIR}/attachments root nobody 730
OWN_DIRS_PERMS+= ${DATADIR}/data nobody nobody 755
post-extract:
cd ${WRKSRC}; \
${MV} config/conf.pl config/conf.pl.orig; \
${SED} -e "s|^#!/.*|#!${PERL5}|g" \
config/conf.pl.orig > config/conf.pl; \
${CHMOD} +x config/conf.pl
${FIND} ${WRKSRC} -name ".cvsignore" -exec ${RM} -f {} \;
post-patch:
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
pre-install:
${SED} ${FILES_SUBST_SED} \
${FILESDIR}/squirrelmail.conf.dist \
> ${WRKDIR}/squirrelmail.conf.dist
do-install:
${INSTALL_DATA_DIR} ${EGDIR} ${SMDIR}
cd ${WRKDIR}; ${INSTALL_DATA} squirrelmail.conf.dist \
${EGDIR}/squirrelmail.conf
${CP} -R ${WRKSRC}/* ${SMDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SMDIR}
${CHMOD} -R a-w ${SMDIR}
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
|