aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2008-03-12 06:50:31 +0800
committerehaupt <ehaupt@FreeBSD.org>2008-03-12 06:50:31 +0800
commit532a218148652fd2090bde91e220a5c2ed514f22 (patch)
tree743aae0d43630e1230190a0de670f1db56671598 /net-mgmt
parent20cbd026a81e215e7f3cf469bf0bc19ca90181f9 (diff)
downloadfreebsd-ports-gnome-532a218148652fd2090bde91e220a5c2ed514f22.tar.gz
freebsd-ports-gnome-532a218148652fd2090bde91e220a5c2ed514f22.tar.zst
freebsd-ports-gnome-532a218148652fd2090bde91e220a5c2ed514f22.zip
Really fix this port this time. This was a objformat issue.
Notified by: pointyhat via pav
Diffstat (limited to 'net-mgmt')
-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