blob: 4ccf1bc4482cb20cc98f07d61824e5c3483e6181 (
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
|
# $NetBSD: Makefile,v 1.21 2003/01/28 22:04:29 jlam Exp $
DISTNAME= horde-2.0
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/tarballs/
MAINTAINER= bouyer@netbsd.org
HOMEPAGE= http://www.horde.org/
COMMENT= PHP application framework
DEPENDS+= php>4.0.0:../../www/php4
DEPENDS+= php-pcre>4.0.0:../../devel/php4-pcre
DEPENDS+= php-session>4.0.0:../../devel/php4-session
DEPENDS+= php-gettext>4.0.0:../../devel/php4-gettext
DEPENDS+= php-xml>4.0.0:../../textproc/php4-xml
DOCDIR= ${PREFIX}/share/doc/horde
EGDIR= ${PREFIX}/share/examples/horde
HORDEDIR= ${PREFIX}/share/horde
MESSAGE_SUBST+= HORDEDIR=${HORDEDIR}
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= httpd
USE_PKGINSTALL= yes
CONF_FILES= ${EGDIR}/horde.conf ${PKG_SYSCONFDIR}/horde.conf
CONF_FILES+= ${HORDEDIR}/config/horde.php.dist ${HORDEDIR}/config/horde.php
SUPPORT_FILES+= ${HORDEDIR}/config/html.php.dist ${HORDEDIR}/config/html.php
SUPPORT_FILES+= ${HORDEDIR}/config/lang.php.dist ${HORDEDIR}/config/lang.php
SUPPORT_FILES+= ${HORDEDIR}/config/mime_drivers.php.dist ${HORDEDIR}/config/mime_drivers.php
SUPPORT_FILES+= ${HORDEDIR}/config/mime_mapping.php.dist ${HORDEDIR}/config/mime_mapping.php
SUPPORT_FILES+= ${HORDEDIR}/config/motd.php.dist ${HORDEDIR}/config/motd.php
SUPPORT_FILES+= ${HORDEDIR}/config/registry.php.dist ${HORDEDIR}/config/registry.php
post-patch:
cd ${WRKSRC}/scripts; \
for file in mime_mapping/convert.pl; do \
${MV} -f $${file} $${file}.orig; \
${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
$${file}.orig > $${file}; \
done
do-build:
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
${FIND} ${WRKSRC} -name .htaccess -exec ${RM} -f {} \;
${FIND} ${WRKSRC}/scripts -name "*.pl" -exec ${CHMOD} +x {} \;
${FIND} ${WRKSRC}/scripts -name "*.sh" -exec ${CHMOD} +x {} \;
pre-install:
${SED} -e "s|@HORDEDIR@|${HORDEDIR}|g" \
${FILESDIR}/horde.conf.dist > ${WRKDIR}/horde.conf.dist
do-install:
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} ${HORDEDIR}
cd ${WRKDIR}; ${INSTALL_DATA} horde.conf.dist ${EGDIR}/horde.conf
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README docs/* ${DOCDIR}
cd ${WRKSRC}; ${CP} -R admin graphics lib locale po scripts templates util ${HORDEDIR}
${INSTALL_DATA_DIR} ${HORDEDIR}/config
cd ${WRKSRC}/config; ${INSTALL_DATA} * ${HORDEDIR}/config
cd ${WRKSRC}; ${INSTALL_DATA} *.php ${HORDEDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${HORDEDIR}
${CHMOD} -R a-w ${HORDEDIR}
.include "../../mk/bsd.pkg.mk"
|