blob: baf8157330823ad51d295701bf7655199265bfea (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# $NetBSD: Makefile,v 1.2 2001/02/13 03:54:00 jlam Exp $
DISTNAME= horde-1.2.4
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/tarballs/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.horde.org/
DEPENDS+= php>3.0.17:../../www/php4
NO_CONFIGURE= # defined
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
CONFDIR= ${PREFIX}/etc/httpd
DOCDIR= ${PREFIX}/share/doc/horde
HORDEDIR= ${PREFIX}/share/horde
PHPLIBDIR= ${PREFIX}/share/horde/phplib
MESSAGE_SUBST+= HORDEDIR=${HORDEDIR}
MESSAGE_SUBST+= PHPLIBDIR=${PHPLIBDIR}
post-extract:
cd ${WRKSRC}/phplib; \
for file in local.inc prepend.php3; do \
${MV} $${file} $${file}.dist; \
done
cd ${WRKSRC}/config; \
for file in \
MOTD.html header.txt html.php3 lang.php3 menu.txt \
mime.php3; \
do \
${MV} $${file} $${file}.dist; \
done
post-patch:
cd ${WRKSRC}/scripts; \
for file in add_horde_string.pl add_lang_string.pl; do \
${MV} -f $${file} $${file}.orig; \
${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
$${file}.orig > $${file}; \
done
cd ${WRKSRC}/scripts/database; \
for file in pgsql_cuser.sh; do \
${MV} -f $${file} $${file}.orig; \
${SED} -e "s|/usr/bin/psql|${LOCALBASE}/bin/psql|g" \
$${file}.orig > $${file}; \
done
do-build:
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
${FIND} ${WRKSRC} -name "*.pl" -exec ${CHMOD} +x {} \;
${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \;
pre-install:
${SED} -e "s|@HORDEDIR@|${HORDEDIR}|g" \
-e "s|@PHPLIBDIR@|${PHPLIBDIR}|g" \
${FILESDIR}/horde.conf.dist > ${WRKDIR}/horde.conf.dist
${SED} -e "s|@HORDEDIR@|${HORDEDIR}|g" \
${FILESDIR}/horde_setup.sh > ${WRKDIR}/horde_setup.sh
${SED} -e "s|@HORDEDIR@|${HORDEDIR}|g" \
${FILESDIR}/horde_secure.sh > ${WRKDIR}/horde_secure.sh
${SED} -e "s|@HORDEDIR@|${HORDEDIR:S/^${PREFIX}\///}|g" \
-e "s|@PHPLIBDIR@|${PHPLIBDIR:S/^${PREFIX}\///}|g" \
-e "s|@CAT@|${CAT}|g" \
-e "s|@RM@|${RM}|g" \
-e "s|@RMDIR@|${RMDIR}|g" \
-e "s|@TRUE@|${TRUE}|g" \
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e "s|@HORDEDIR@|${HORDEDIR:S/^${PREFIX}\///}|g" \
-e "s|@PHPLIBDIR@|${PHPLIBDIR:S/^${PREFIX}\///}|g" \
-e "s|@CAT@|${CAT}|g" \
-e "s|@CHMOD@|${CHMOD}|g" \
-e "s|@CP@|${CP}|g" \
${PKGDIR}/INSTALL > ${INSTALL_FILE}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/horde_setup.sh ${PREFIX}/sbin/horde_setup
${INSTALL_SCRIPT} ${WRKDIR}/horde_secure.sh ${PREFIX}/sbin/horde_secure
${INSTALL_DATA_DIR} ${CONFDIR} ${DOCDIR} ${HORDEDIR} ${PHPLIBDIR}
cd ${WRKDIR}; ${INSTALL_DATA} horde.conf.dist ${CONFDIR}
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README docs/* ${DOCDIR}
cd ${WRKSRC}/phplib; ${INSTALL_DATA} * ${PHPLIBDIR}
cd ${WRKSRC}; ${CP} -R graphics lib locale scripts templates ${HORDEDIR}
${INSTALL_DATA_DIR} ${HORDEDIR}/config
cd ${WRKSRC}/config; ${INSTALL_DATA} * ${HORDEDIR}/config
cd ${WRKSRC}; ${INSTALL_DATA} *.php3 ${HORDEDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${HORDEDIR}
${CHMOD} -R a-w ${HORDEDIR}
post-install:
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
|