1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

o Bump SHLIB_VERSION to 4 and make this port build it that way.

o Look for perl in the right place (patch-ah)
o Add a typedef that ucd-snmp wants (patch-ag)
o Install headers files with the right permissions

Submitted by:	<jack@germanium.xtalwind.net>
PR:		ports/13539
----------------------------------------------------------------------

o Remove extraneous HAS_CONFIGURE introduced by nectar in rev1.19
o Use the PATCH_* framework and grab 012.patch from the authors.
This commit is contained in:
Bill Fumerola 1999-09-04 23:30:47 +00:00
parent 93c4a3203c
commit db60f873fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21264
28 changed files with 203 additions and 35 deletions

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;

View File

@ -11,12 +11,14 @@ CATEGORIES= net
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
PATCH_SITES= http://ucd-snmp.ucdavis.edu/patches/
PATCHFILES= 012.patch
PATCH_DIST_STRIP= -p0 -d ${WRKSRC}/agent
MAINTAINER= gpalmer@FreeBSD.org
CONFIGURE_ARGS= --enable-shared
USE_CONFIGURE= YES
GNU_CONFIGURE= YES
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@ -47,16 +49,18 @@ BROKEN= "aout build breaks: ld: internal error: RRS relocs exceed allocation 34
BROKEN= "Uses the old VM system interfaces"
.endif
SHLIB_VERSION=3
SHLIB_VERSION=4
PLIST_SUB= shlib=${SHLIB_VERSION}
post-patch:
@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
post-install:
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

View File

@ -1 +1,2 @@
MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
MD5 (012.patch) = 4e5cbbeacaccafedc985698fafb89d15

View File

@ -0,0 +1,11 @@
--- snmplib/ucd-snmp-includes.h.orig Wed Jan 20 18:18:42 1999
+++ snmplib/ucd-snmp-includes.h Sat Aug 28 02:13:56 1999
@@ -4,7 +4,7 @@
#include <netinet/in.h>
/* uncomment if you don't have in_addr_t in netinet/in.h */
-/* typedef u_int in_addr_t; */
+typedef u_int in_addr_t;
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp_api.h>

View File

@ -0,0 +1,8 @@
--- local/tkmib.orig Wed Jul 21 19:06:52 1999
+++ local/tkmib Sat Aug 28 02:37:57 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
require 5;