View | Details | Raw Unified | Return to bug 83058
Collapse All | Expand All

(-)Makefile (-18 / +16 lines)
Lines 6-19 Link Here
6
#
6
#
7
7
8
PORTNAME=	snmp
8
PORTNAME=	snmp
9
PORTVERSION=	5.2.1
9
PORTVERSION=	5.2.1.2
10
PORTREVISION=	2
11
PKGNAMEPREFIX=	net-
12
CATEGORIES=	net-mgmt ipv6
10
CATEGORIES=	net-mgmt ipv6
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
14
MASTER_SITE_SUBDIR=	net-snmp
12
MASTER_SITE_SUBDIR=	net-snmp
13
PKGNAMEPREFIX=	net-
15
DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
14
DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
16
15
16
MAINTAINER=	kuriyama@FreeBSD.org
17
COMMENT=	An extendable SNMP implementation
18
17
.if defined(WITH_INETADDRESS_HACK)
19
.if defined(WITH_INETADDRESS_HACK)
18
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-snmplib::mib.c
20
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-snmplib::mib.c
19
.endif
21
.endif
Lines 21-29 Link Here
21
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-local:Makefile.in
23
EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-local:Makefile.in
22
.endif
24
.endif
23
25
24
MAINTAINER=	kuriyama@FreeBSD.org
25
COMMENT=	An extendable SNMP implementation
26
27
.if defined(WITH_TKMIB)
26
.if defined(WITH_TKMIB)
28
RUN_DEPEND=	${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
27
RUN_DEPEND=	${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
29
.endif
28
.endif
Lines 103-117 Link Here
103
_NET_SNMP_MIB_MODULES=
102
_NET_SNMP_MIB_MODULES=
104
.for module1 in ${NET_SNMP_MIB_MODULE_LIST}
103
.for module1 in ${NET_SNMP_MIB_MODULE_LIST}
105
_module1=${module1}
104
_module1=${module1}
106
_define= false
105
_define=false
107
. for module2 in ${NET_SNMP_MIB_MODULES}
106
. for module2 in ${NET_SNMP_MIB_MODULES}
108
_module2=${module2}
107
_module2=${module2}
109
.  if ${_module1} == ${_module2}
108
.  if ${_module1} == ${_module2}
110
_define= true
109
_define=true
111
.  endif
110
.  endif
112
. endfor
111
. endfor
113
. if ${_define} == true
112
. if ${_define} == true
114
_NET_SNMP_MIB_MODULES+= ${module1}
113
_NET_SNMP_MIB_MODULES+=${module1}
115
PLIST_SUB+=	WITH_${module1:C|.*/||:U}=""
114
PLIST_SUB+=	WITH_${module1:C|.*/||:U}=""
116
. else
115
. else
117
PLIST_SUB+=	WITH_${module1:C|.*/||:U}="@comment "
116
PLIST_SUB+=	WITH_${module1:C|.*/||:U}="@comment "
Lines 221-242 Link Here
221
	@${MV} ${WRKSRC}/aclocal.m4.tmp ${WRKSRC}/aclocal.m4
220
	@${MV} ${WRKSRC}/aclocal.m4.tmp ${WRKSRC}/aclocal.m4
222
221
223
patch-script-files:
222
patch-script-files:
224
.for file in ${SCRIPT_FILES}
223
.for filename in ${SCRIPT_FILES}
225
	@${REINPLACE_CMD} ${SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
224
	@${REINPLACE_CMD} ${SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
226
		${WRKSRC}/local/${file}
225
		${WRKSRC}/local/${filename}
227
.endfor
226
.endfor
228
227
229
patch-startup-files:
228
patch-startup-files:
230
.for file in ${STARTUP_FILES}
229
.for filename in ${STARTUP_FILES}
231
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
230
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
232
		${FILESDIR}/${file}.sample > ${WRKDIR}/${file}
231
		${FILESDIR}/${filename}.sample > ${WRKDIR}/${filename}
233
.endfor
232
.endfor
234
233
235
post-configure:
234
post-configure:
236
	@${FIND} ${WRKSRC} -name Makefile | \
235
	@${FIND} ${WRKSRC} -name Makefile | \
237
	 ${XARGS} ${REINPLACE_CMD} -E -e '/^INSTALL[ 	]+=/s|$$| -m 755|'
236
	 ${XARGS} ${REINPLACE_CMD} -E -e '/^INSTALL[ 	]+=/s|$$| -m 755|'
238
237
239
240
post-build:
238
post-build:
241
.if !defined(WITHOUT_PERL)
239
.if !defined(WITHOUT_PERL)
242
	${FIND} ${WRKSRC}/perl -name Makefile | \
240
	${FIND} ${WRKSRC}/perl -name Makefile | \
Lines 256-263 Link Here
256
	@cd ${PREFIX}/sbin; ${STRIP_CMD} ${SBIN_FILES}
254
	@cd ${PREFIX}/sbin; ${STRIP_CMD} ${SBIN_FILES}
257
255
258
install-startup-files:
256
install-startup-files:
259
.for file in ${STARTUP_FILES}
257
.for filename in ${STARTUP_FILES}
260
	@${INSTALL_SCRIPT} ${WRKDIR}/${file} ${STARTUP_DIR}
258
	@${INSTALL_SCRIPT} ${WRKDIR}/${filename} ${STARTUP_DIR}
261
.endfor
259
.endfor
262
260
263
install-config-files:
261
install-config-files:
Lines 266-273 Link Here
266
install-doc-files:
264
install-doc-files:
267
.if !defined(NOPORTDOCS)
265
.if !defined(NOPORTDOCS)
268
	@${MKDIR} ${DOCSDIR}
266
	@${MKDIR} ${DOCSDIR}
269
. for file in ${DOC_FILES}
267
. for filename in ${DOC_FILES}
270
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
268
	@${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
271
. endfor
269
. endfor
272
.endif
270
.endif
273
271
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (net-snmp-5.2.1.tar.gz) = 4c38451b1f5914789da370b79dc06124
1
MD5 (net-snmp-5.2.1.2.tar.gz) = 34159770a7fe418d99fdd416a75358b1
2
SIZE (net-snmp-5.2.1.tar.gz) = 3971320
2
SIZE (net-snmp-5.2.1.2.tar.gz) = 3869893

Return to bug 83058