blob: 8b5ce63383d95ddc91fda5958ae6336df9ae45d8 (
plain) (
blame)
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
|
# New ports collection makefile for: syscp
# Date created: 4 April 2007
# Whom: Janky Jay <ek@purplehat.org>
#
# $FreeBSD$
#
PORTNAME= syscp
PORTVERSION= 1.4.2.1
PORTREVISION= 2
CATEGORIES= sysutils www
MASTER_SITES= http://files.syscp.org/releases/tgz/
PATCH_DIST_STRIP= -p0
MAINTAINER= ek@purplehat.org
COMMENT= PHP-based ISP System Control Panel
DEPRECATED= Long ditched, possibly dangerous and replaced with sysutils/froxlor
EXPIRATION_DATE=2011-03-24
WRKSRC= ${WRKDIR}
NO_BUILD= yes
SUB_FILES+= pkg-message pkg-deinstall
USE_PHP= gettext mysql session xml bcmath posix filter spl
USE_APACHE= 22
RUN_DEPENDS+= \
dovecot:${PORTSDIR}/mail/dovecot \
postfix:${PORTSDIR}/mail/postfix \
proftpd:${PORTSDIR}/ftp/proftpd-mysql \
webalizer:${PORTSDIR}/www/webalizer
post-patch:
${FIND} ${WRKSRC}/${PORTNAME} -name '*.orig' -delete
@cd ${WRKSRC}/${PORTNAME}/lib && ${MV} userdata.inc.php userdata.inc.php.dist
do-install:
cd ${WRKDIR}/${PORTNAME} && \
${FIND} . | ${CPIO} --quiet -pdm -L ${WWWDIR}
post-install:
@if [ ! -f ${WWWDIR}/lib/userdata.inc.php ]; then \
${CP} -p ${WWWDIR}/lib/userdata.inc.php.dist ${WWWDIR}/lib/userdata.inc.php ; fi
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CHMOD} 0640 ${WWWDIR}/lib/userdata.inc.php
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} 0640 ${WWWDIR}/lib/userdata.inc.php' >> ${TMPPLIST}
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|