blob: f9633b18ffd7781304abe39e028a58ba839f9255 (
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
|
# New ports collection makefile for: AutoIndex
# Date created: 17 December 2004
# Whom: Daniel Gerzo <danger@rulez.sk>
#
# $FreeBSD$
#
PORTNAME= AutoIndex
PORTVERSION= 2.1.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= autoindex
MAINTAINER= danger@rulez.sk
COMMENT= PHP 5.x script that makes a table that lists the files in a directory
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PHP= yes
DEFAULT_PHP_VER= 5
BROKEN_WITH_PHP= 4
CONFLICTS= AutoIndex-1*
NO_BUILD= yes
PLIST_SUB+= INSTALLDIR=${INSTALLDIR}
pre-fetch:
.if !defined(INSTALLDIR)
@${ECHO_MSG} ""
@${ECHO_MSG} "Define INSTALLDIR to override default of 'www/data/${PORTNAME}'."
@${ECHO_MSG} ""
.endif
INSTALLDIR?= www/data/${PORTNAME}
do-install:
@${MKDIR} ${PREFIX}/${INSTALLDIR}
@${CP} -Rp ${WRKSRC}/* ${PREFIX}/${INSTALLDIR}
@${CP} -p ${WRKSRC}/.htpasswd.autoindex ${PREFIX}/${INSTALLDIR}/.htpasswd.autoindex-dist
@${CHMOD} 666 ${PREFIX}/${INSTALLDIR}/config.php
@${ECHO_CMD} ""
post-install:
.if !defined(BATCH)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
|