aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2008-03-11 22:50:31 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2008-03-11 22:50:31 +0000
commit6b20abc952bfce94ad28d2e07947cd84f9efe97d (patch)
tree5f69a752ec95fb2e3dafbad25f07e36c0169c349
parent94501ffbfb369c7124975c334eb00d9ad3453255 (diff)
downloadports-6b20abc952bfce94ad28d2e07947cd84f9efe97d.tar.gz
ports-6b20abc952bfce94ad28d2e07947cd84f9efe97d.zip
Notes
-rw-r--r--net-mgmt/net-snmp4/Makefile16
-rw-r--r--net-mgmt/net-snmp4/pkg-plist6
2 files changed, 8 insertions, 14 deletions
diff --git a/net-mgmt/net-snmp4/Makefile b/net-mgmt/net-snmp4/Makefile
index d80170a44d44..d8bd097ad522 100644
--- a/net-mgmt/net-snmp4/Makefile
+++ b/net-mgmt/net-snmp4/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.6
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
@@ -94,20 +94,13 @@ CONFIGURE_ARGS+= --with-openssl=/usr
CFLAGS+= -DOPENSSL_DES_LIBDES_COMPATIBILITY
.endif
+SHLIB_VERSION= 4
+PLIST_SUB+= shlib=${SHLIB_VERSION}
+
OPTIONS= IPV6 "Enable IPv6 support" On
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700019
-SHLIB_VERSION= 4.0
-PLIST_SUB+= LEGACYLINKS="@comment "
-.else
-SHLIB_VERSION= 4
-PLIST_SUB+= LEGACYLINKS=""
-.endif
-
-PLIST_SUB+= shlib=${SHLIB_VERSION}
-
.if ${OSVERSION} >= 600000
CFLAGS+= -Dfreebsd5
.endif
@@ -128,6 +121,7 @@ post-patch:
-e 's|%%LTCONFIG%%|${LTCONFIG}|g' \
-e 's|%%LTMAIN%%|${LTMAIN}|g' \
${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
post-install:
@( cd ${PREFIX}/bin && ${STRIP_CMD} ${BIN} )
diff --git a/net-mgmt/net-snmp4/pkg-plist b/net-mgmt/net-snmp4/pkg-plist
index 1e09e4bb5481..e3c7a8ce4b7c 100644
--- a/net-mgmt/net-snmp4/pkg-plist
+++ b/net-mgmt/net-snmp4/pkg-plist
@@ -63,15 +63,15 @@ include/ucd-snmp/version.h
@dirrm include/ucd-snmp
lib/libsnmp.a
lib/libsnmp.la
-%%LEGACYLINKS%%lib/libsnmp.so
+lib/libsnmp.so
lib/libsnmp.so.%%shlib%%
lib/libucdagent.a
lib/libucdagent.la
-%%LEGACYLINKS%%lib/libucdagent.so
+lib/libucdagent.so
lib/libucdagent.so.%%shlib%%
lib/libucdmibs.a
lib/libucdmibs.la
-%%LEGACYLINKS%%lib/libucdmibs.so
+lib/libucdmibs.so
lib/libucdmibs.so.%%shlib%%
sbin/snmpd
sbin/snmptrapd