mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
c589fe94b9
PR: ports/77268 Submitted by: Maxim Tuliuk <mt@primats.org.ua> (maintainer)
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# Ports collection makefile for: ipplan
|
|
# Date created: 26 Nov 2004
|
|
# Whom: Maxim Tuliuk <mt@primats.org.ua>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ipplan
|
|
PORTVERSION= 4.0.4
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= iptrack
|
|
DISTNAME= ${PORTNAME}-4.04
|
|
|
|
MAINTAINER= mt@primats.org.ua
|
|
COMMENT= IP address management and tracking
|
|
|
|
USE_REINPLACE= yes
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
IPPLANDIR?= share/${PORTNAME}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST_SUB= IPPLANDIR=${IPPLANDIR}
|
|
|
|
USE_PHP= gettext pcre xml zlib
|
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
USE_PHP+= mysql
|
|
.endif
|
|
|
|
.if defined(WITH_PGSQL)
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
.if defined(WITH_SNMP)
|
|
USE_PHP+= snmp
|
|
.endif
|
|
|
|
post-patch:
|
|
@${SED} -e 's|%IPPLANDIR%|${PREFIX}/${IPPLANDIR}|g' ${MASTERDIR}/pkg-message > ${PKGMESSAGE}
|
|
.if defined(WITH_PGSQL)
|
|
@${REINPLACE_CMD} -e 's|INSTALL|INSTALL-POSTGRESQL|g' ${PKGMESSAGE}
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/${IPPLANDIR}
|
|
@${CP} -R ${WRKSRC}/* ${PREFIX}/${IPPLANDIR}
|
|
@${FIND} ${PREFIX}/${IPPLANDIR} -name '*.orig' -delete
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|