2004-01-20 13:18:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2004/01/20 12:22:19 agc Exp $
|
2000-10-21 21:02:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ispman-0.5
|
2001-11-29 02:12:24 +01:00
|
|
|
PKGREVISION= 1
|
2000-10-21 21:02:32 +02:00
|
|
|
CATEGORIES= net
|
2000-11-11 18:49:22 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ispman/}
|
2000-10-21 21:02:32 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2000-10-21 21:02:32 +02:00
|
|
|
HOMEPAGE= http://www.ispman.org/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= ISP management software written in perl
|
2000-10-21 21:02:32 +02:00
|
|
|
|
2000-11-22 11:44:51 +01:00
|
|
|
DEPENDS+= pam-ldap>=77:../../security/pam-ldap
|
2001-01-25 11:46:40 +01:00
|
|
|
DEPENDS+= apache>=1.3.14nb1:../../www/apache
|
2000-10-21 21:02:32 +02:00
|
|
|
DEPENDS+= p5-${DISTNAME}:../../net/p5-ispman
|
|
|
|
|
|
|
|
.if !exists(/usr/sbin/postfix)
|
2003-01-09 00:49:25 +01:00
|
|
|
DEPENDS+= {postfix>=20010228,postfix-1.*,postfix-2.*}:../../mail/postfix
|
2000-10-21 21:02:32 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_PERL5= YES
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ispman
|
2000-10-21 21:02:32 +02:00
|
|
|
ISPMAN_HTDOCS?= ${PREFIX}/share/ispman/virtual
|
|
|
|
ISPMAN_IP?= 127.0.0.1
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${SED} < install.pl > pkginstall.pl \
|
|
|
|
-e 's:@@PREFIX@@:${PREFIX}:g' \
|
|
|
|
-e 's:@@HTDOCS@@:${ISPMAN_HTDOCS}:g' \
|
|
|
|
-e 's:@@IP@@:${ISPMAN_IP}:g'
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for dir in ispman-utils ispman-web
|
|
|
|
cd ${WRKSRC}/${dir} && \
|
|
|
|
${RM} -rf `${FIND} . -name CVS -type d -print` && \
|
2000-11-22 11:44:51 +01:00
|
|
|
for i in `${FIND} . -name '*.orig' -type f -print` ; do \
|
|
|
|
${RM} -f $$i ; \
|
|
|
|
done ; \
|
2000-10-21 21:02:32 +02:00
|
|
|
for i in `${FIND} . -type f -print` ; do \
|
|
|
|
${CP} $$i $$i.old && \
|
|
|
|
${SED} <$$i.old >$$i -e 's:/usr/bin/perl:${PERL5}:g' && \
|
|
|
|
${RM} $$i.old ; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${PERL5} ./pkginstall.pl && \
|
|
|
|
${INSTALL_DATA} ispman.ldif ${PREFIX}/etc/ispman
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|