summaryrefslogtreecommitdiffstats
path: root/net-mgmt/netustad/Makefile
blob: 70996c328a77ea199b109bd41632fa40a8e6b778 (plain)
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
# New ports collection makefile for:   netustad
# Date created:                 9 February 2005
# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
#
# $FreeBSD$
#

PORTNAME=	netustad
PORTVERSION=	0.3.1
PORTREVISION=	1
CATEGORIES=	net-mgmt security
MASTER_SITES=	http://www.enderunix.org/netustad/

MAINTAINER=	ozkan@enderunix.org
COMMENT=	A Web based admin tool that manages network services

#MAN8=		netustad.8 netustadpasswd.8
#MAN5=		netustad.conf.5

USE_RC_SUBR=	yes
USE_GETTEXT=	yes
GNU_CONFIGURE=	yes
OPTIONS=	SSL "Use netUstad with SSL support" on

PORT_DBDIR?=	/var/db/ports
LATEST_LINK=    ${PORTNAME}${PKGNAMESUFFIX}
OPTIONSFILE?=   ${PORT_DBDIR}/${LATEST_LINK}/options

.if exists(${OPTIONSFILE})
.include "${OPTIONSFILE}"
.endif

.if !defined(WITHOUT_SSL)
USE_OPENSSL=	yes
.else
CONFIGURE_ARGS+=	--without-ssl
.endif

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=	--without-nls
.endif

.if defined(NOPORTDOCS)
#make portlint happy :)
.endif

SED_SCRIPT+=	-e '{ s,%%PREFIX%%,${PREFIX},g; }'

post-build:
	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustad.sh >${WRKDIR}/netustad.sh

post-install:
	@${CAT} ${PKGMESSAGE} | ${SED} ${SED_SCRIPT}
	${INSTALL_SCRIPT} ${WRKDIR}/netustad.sh ${PREFIX}/etc/rc.d/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud