blob: 1048b4bb74d04512c62acad5c80108f80580a135 (
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
|
# New ports collection makefile for: OpenSLP 1.0
# Date created: 15 Sep 2001
# Whom: Joe Clarke
#
# $FreeBSD$
#
PORTNAME= openslp
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openslp
MAINTAINER= marcus@FreeBSD.org
COMMENT= Open-source implementation of the Service Location Protocol
USE_LIBTOOL_VER=15
USE_OPENSSL= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openslp \
--localstatedir=/var
CONFIGURE_TARGET=--target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
OPTIONS= SLP_SECURITY "Turn on SLPv2 security support" off \
ASYNC_API "Enable asynchronous communication API" off
.include <bsd.port.pre.mk>
.if defined(WITH_SLP_SECURITY)
CONFIGURE_ARGS+= --enable-slpv2-security
.endif
.if defined(WITH_ASYNC_API)
CONFIGURE_ARGS+= --enable-async-api
.endif
post-extract:
@(cd ${WRKSRC}; \
${FIND} doc -type f -path '*/CVS/*' -delete; \
${FIND} doc -type d -name CVS -delete)
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/slpd.sh.sample > ${WRKSRC}/slpd.sh
post-install:
.for FILE in slp.conf slp.reg slp.spi
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} ${PREFIX}/etc/openslp/${FILE}.default
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/slpd.sh ${PREFIX}/etc/rc.d/001slpd.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${INSTALL_WRKSRC}/doc; \
${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\
${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;)
.endif
.include <bsd.port.post.mk>
|