aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/webmin/Makefile
blob: 7013800787d754e8e185c2413376ee49c79fa471 (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
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
# New ports collection makefile for:    webmin
# Date created:     Do  19 Nov 1998 21:13:55 CET
# Whom:         Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
#

PORTNAME=   webmin
PORTVERSION=    1.560
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://download.webmin.com/updates/:up \
        SF/webadmin/${PORTNAME}/${PORTVERSION}:sf \
        ${MASTER_SITE_LOCAL:S/$/:up/}
MASTER_SITE_SUBDIR= olgeni/:up
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:sf ${WEBMIN_MODULES:S/gz$/gz:up/}
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Web-based interface for system administration for Unix

RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
        ${SITE_PERL}/${PERL_ARCH}/Authen/PAM.pm:${PORTSDIR}/security/p5-Authen-PAM

USE_PERL5=  yes
USE_RC_SUBR=    webmin.sh
SUB_LIST=   PERL5=${PERL}
SUB_FILES=  pkg-message

WEBMIN_MODULES= backup-config-1.560-2.wbm.gz \
        init-1.560-2.wbm.gz

post-extract:
    @${RM} -f ${WRKSRC}/mount/freebsd-mounts-?
    @if [ "${WEBMIN_MODULES}" != "" ]; then \
        for webmin_module in ${WEBMIN_MODULES}; do \
            ${ECHO} "===> Unpacking updated module: $${webmin_module}"; \
            ${TAR} --unlink -xzf ${DISTDIR}/$${webmin_module} -C ${WRKSRC}; \
        done; \
    fi

post-patch:
    @${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/setup.sh

    @${FIND} ${WRKSRC} -name config-freebsd\* \
        -exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \
        -exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \;

    @${FIND} ${WRKSRC} -name "*.cgi" -exec \
        ${REINPLACE_CMD} -e "s@#!/usr/local/bin/perl@#!${PERL}@" {} \;
    @${FIND} ${WRKSRC} -name "*.cgi" -exec \
        ${REINPLACE_CMD} -e "s@#!/usr/bin/perl@#!${PERL}@" {} \;
    @${FIND} ${WRKSRC} -name "*.pl" -exec \
        ${REINPLACE_CMD} -e "s@#!/usr/local/bin/perl@#!${PERL}@" {} \;
    @${FIND} ${WRKSRC} -name "*.pl" -exec \
        ${REINPLACE_CMD} -e "s@#!/usr/bin/perl@#!${PERL}@" {} \;

    @${FIND} ${WRKSRC} -name "*.orig" -delete
    @${FIND} ${WRKSRC} -name "*.bak" -delete

do-build:
    @${CC} ${CFLAGS} -o ${WRKSRC}/mount/freebsd-mounts-7 ${WRKSRC}/mount/freebsd-mounts-7.c

do-install:
    @${MKDIR} ${PREFIX}/lib/webmin
    @${CP} -r ${WRKSRC}/* ${PREFIX}/lib/webmin

post-install:
    @cd ${WRKSRC} ; ${FIND} * -type f -o -type l | ${SORT} | ${AWK} \
        '{ print "lib/webmin/" $$1 }' > ${WRKDIR}/PLIST.lib-webmin
    @cd ${WRKSRC} ; ${FIND} * -type d -empty | ${SORT} -r | ${AWK} \
        '{ print "lib/webmin/" $$1 }' | ${SED} -e 's#^#@exec mkdir -p %D/#g' \
        >> ${WRKDIR}/PLIST.lib-webmin
    @cd ${WRKSRC} ; ${FIND} * -type d | ${SORT} -r | ${AWK} \
        '{ print "lib/webmin/" $$1 }' | ${SED} -e 's/^/@dirrm /g' \
        >> ${WRKDIR}/PLIST.lib-webmin
    @${ECHO_CMD} "r ${TMPPLIST}"            > ${WRKDIR}/ex.script
    @${ECHO_CMD} "/Insert PLIST.lib-webmin"     >> ${WRKDIR}/ex.script
    @${ECHO_CMD} "d"                >> ${WRKDIR}/ex.script
    @${ECHO_CMD} "r ${WRKDIR}/PLIST.lib-webmin" >> ${WRKDIR}/ex.script
    @${ECHO_CMD} "x!"               >> ${WRKDIR}/ex.script
    @${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-webmin
    @cd ${WRKDIR} ; ex < ex.script
    @if [ -d ${PREFIX}/etc/webmin ]; then \
        ${PREFIX}/lib/webmin/setup.sh; \
    fi
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
/cgit/cgit.cgi/freebsd-ports-graphics/commit/astro?id=ea4ec30df385a15e2bde0a424863f0ba438ccf28'>New port: phoonfjoe2003-05-166-0/+70 * Depend on p5-Time-modules port rather than p5-Time.demon2003-05-131-2/+1 * - update to 2.28petef2003-05-114-43/+45 * Update to 2.27arved2003-05-095-27/+36 * Update my coordinates.roberto2003-05-081-1/+1 * unbreak by upgrading to 0.1.10ijliao2003-05-072-6/+6 * BROKEN: Does not compilekris2003-05-071-0/+2 * Add my coordinatesoliver2003-05-061-0/+1 * Add my coordinates. (Levallois-Perret, France)mich2003-05-061-0/+1 * Update to version 2.5naddy2003-05-033-16/+20 * Update to 0.7naddy2003-04-303-4/+6 * Update misc/xrmap: fix distinfo - bento erroredwin2003-04-181-1/+1 * Remove lib/perllocal.pod-${PORTNAME} from the pkg-plist now that this filekris2003-04-181-1/+0 * Maintainer update: Do not assume the user running setiathome has acjc2003-04-132-10/+12 * Maintainer update: New version released. Fixes securitycjc2003-04-092-2/+3 * Maintainer update: Don't misuse the 'nobody' account.cjc2003-04-094-15/+67 * Mark FORBIDDEN. Remotely exploitable buffer overflow.nectar2003-04-081-0/+2 * Remove USE_GNOMENG macro.marcus2003-04-0813-13/+0 * fix build error on RELENG_4ijliao2003-04-071-0/+1 * added comment about www.heavens-above.com for finding your coordinates.edwin2003-04-072-37/+41 * I've moved!edwin2003-04-071-1/+2 * Remove redundant variables defenition in the Makefileleeym2003-04-071-6/+0 * update this a bit belatedlybillf2003-04-071-1/+1 * upgrade to 1.0.1ijliao2003-04-065-91/+43 * Update ports misc/xrmap to 2.26edwin2003-04-056-301/+1745 * Update to 2000.06.13.nork2003-04-054-25/+16 * Maintainer update: gpsman 5.4.2 -> 6.0.1edwin2003-03-304-11/+48 * * Update to 0.14leeym2003-03-234-10/+57 * unbreak roadmapleeym2003-03-152-0/+5 * Clear moonlight beckons.ade2003-03-0726-13/+13 * - update to 0.8;tobez2003-03-064-4/+10 * Remove astro/kstars. Kstars have been included in misc/kdeedu3 port.pat2003-03-026-430/+0 * Retire comment file.trevor2003-03-016-3/+3 * - Update to 0.13leeym2003-03-015-62/+54 * De-pkg-comment for my ports.perky2003-02-252-1/+1 * Provide a bit more accurate location for where I am currently.steve2003-02-241-1/+1 * BROKEN: installs manpage into wrong directorykris2003-02-221-0/+2 * pkg-comment -> COMMENTnaddy2003-02-214-2/+2 * De-pkg-comment.knu2003-02-2132-17/+16 * De-pkg-comment.knu2003-02-212-1/+1 * De-pkg-comment.knu2003-02-2146-23/+23 * De-pkg-comment.obraun2003-02-192-1/+1 * I'm now living in Memphis, TN.petef2003-02-151-1/+1 * Convert COMMENT to COMMENTFILE until these ports can be converted.kris2003-02-101-1/+1 * Fix WWW in pkg-descredwin2003-02-051-1/+1 * Remove obsolete personal homepage.naddy2003-02-041-1/+0 * Show others where I'm living.edwin2003-02-031-1/+1 * Update to 0.6.0.nork2003-02-023-4/+3 * My new home in Reading, UKjesper2003-01-311-1/+1 * Add roadmap port: displays US Cencus tiger maps. Read the README forseanc2003-01-318-0/+118 * Update to 0.5.1arved2003-01-274-12/+5 * Update WWW.arved2003-01-266-24/+46 * Update to 1.32.1arved2003-01-252-2/+2 * Remove a hidden dependency on Perl: PERL->REINPLACE_CMD.petef2003-01-221-1/+2 * I leave the multitude of FBSD committers living in Berkeley, CA, and standadamw2003-01-151-1/+1 * Add myselfbrueffer2003-01-141-0/+1 * Back at Purdue University for my sixth semester of computer engineering.will2003-01-131-1/+1 * Drop maintainership.petef2003-01-061-1/+1 * upgrade to 1.31ijliao2003-01-043-6/+9 * Update to 0.5perky2003-01-022-2/+2 * Update to 1.3. Now includes a man page.naddy2003-01-026-18/+27 * Fix master_site to right redirected path.edwin2002-12-281-1/+1 * Remove old master_sites.edwin2002-12-281-3/+1 * Replace some stale URLs for xrmap data files.petef2002-12-231-2/+1 * note added about i386 a.out support under FreeBSD 5.x.edwin2002-12-202-4/+9 * Fix package building due to GNOME'isms.marcus2002-12-021-10/+5 * Fix build on -current and PERL->REINPLACE_CMDpat2002-11-272-1/+12 * Remove maintainers with undeliverable email addresses.kris2002-11-231-1/+1 * Fix build on -CURRENT. Build tested on -STABLE as well.will2002-11-181-0/+11 * A "patch-message" target is already used by bsd.port.mk.naddy2002-11-131-2/+2 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-1144-44/+22 * upgrade to 0.75ijliao2002-11-084-9/+14 * Set MAINTAINER to ports@ for ports without one. "One" being "a maintainer"adamw2002-11-071-0/+2 * Fix PORTCOMMENTs that were killing INDEX builds.adamw2002-11-071-1/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-0744-22/+44 * Rename patch-message target to patch-pkgmessage since patch-messagenaddy2002-11-061-2/+2 * Enable compilation on -CURRENT.trevor2002-11-061-0/+12 * MASTER_SITE and WWW site is moved.perky2002-10-262-2/+2 * Fix build on -current (remove <malloc.h>)kris2002-10-251-0/+10 * Update to version 1.28kevlo2002-10-243-7/+11 * add libnova 0.5.0ijliao2002-10-238-0/+52 * Add a line for myself and a line for ftp.at.FreeBSD.orgarved2002-10-202-0/+2 * add WWWijliao2002-10-204-0/+8 * add p5-Astro-Catalog 1.8.1ijliao2002-10-206-0/+46 * add p5-Astro-DSS 1.6ijliao2002-10-206-0/+40 * add p5-Astro-SIMBAD 1.9.3ijliao2002-10-206-0/+45