Info4: << Package: libnetsnmp30-shlibs Version: 5.7.2 Revision: 1 Description: SNMP tools and libraries License: BSD Maintainer: Benjamin Reed BuildDepends: << expat1, fink (>= 0.32.0-1), fink-package-precedence, libelf, libtool2, openssl100-dev << ### Removed by TheSin for 10.7, don't think it's still required #BuildConflicts: coreutils-default Source: mirror:sourceforge:net-snmp/net-snmp-%v.tar.gz Source-MD5: 5bddd02e2f82b62daa79f82717737a14 PatchScript: << # set up portability/compatibility links. # use when a release doesn't know about the latest darwin release # as of 5.7.2, upstream git knowns about darwin13 but is not yet in a release ln -sf darwin12.h include/net-snmp/system/darwin13.h patch -p1 < %{PatchFile} << PatchFile: %n.patch PatchFile-MD5: 2174daf322d19422eb41d1a0a94cec06 ### Use fink ssl as of libversion 30 by TheSin # NB: this may go into net-snmp-config and propagate to # other packages that use it; consider removing non-public # build/implementation details there #SetCPPFLAGS: -I%p/lib/system-openssl/include #SetLDFLAGS: -L%p/lib/system-openssl/lib SetCPPFLAGS: -MD UseMaxBuildJobs: false ConfigureParams: << --with-install-prefix='%d' \ --enable-ipv6 \ --mandir='${prefix}/share/man' \ --with-logfile=%p/var/log/snmpd.log \ --with-persistent-directory=%p/var/lib/snmp \ --with-default-snmp-version="3" \ --enable-shared \ --disable-static \ --with-openssl=%p \ --with-mibdirs='$HOME/.snmp/mibs:%p/share/snmp/mibs:/usr/share/snmp/mibs' \ --with-mib-modules='ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable if-mib' \ --enable-mfd-rewrites \ --with-sys-contact='finkuser@example.com' \ --with-sys-location=Unknown \ --without-kmem-usage \ --without-python-modules \ --without-perl-modules --disable-embedded-perl << CompileScript: << #!/bin/sh -ev ### Added by TheSin for 10.7 # Looks like it's not needed anymore since it knows about darwin11 and darwin12 # fully remove at next update if proven correct #perl -pi -e 's,darwin10\*,darwin10\*|darwin11\*|darwin12\*,g' configure ./configure %c make CFLAGS="-fno-strict-aliasing -g -O" fink-package-precedence --prohibit-bdep=net-snmp-unified15-dev,net-snmp-unified25-dev,libnetsnmp30-dev --depfile-ext='\.d' . << InstallScript: << #!/bin/sh -ev make -j1 install DESTDIR="%d" perl -pi -e 's/ -MD / /g' %i/bin/net-snmp-config install -d -m 755 %i/var/log << DocFiles: COPYING Shlibs: << %p/lib/libnetsnmp.30.dylib 31.0.0 libnetsnmp30-shlibs (>= 5.7.1-1) %p/lib/libnetsnmpagent.30.dylib 31.0.0 libnetsnmp30-shlibs (>= 5.7.1-1) %p/lib/libnetsnmphelpers.30.dylib 31.0.0 libnetsnmp30-shlibs (>= 5.7.1-1) %p/lib/libnetsnmpmibs.30.dylib 31.0.0 libnetsnmp30-shlibs (>= 5.7.1-1) %p/lib/libnetsnmptrapd.30.dylib 31.0.0 libnetsnmp30-shlibs (>= 5.7.1-1) << SplitOff2: << Package: libnetsnmp30-dev Depends: libnetsnmp30-shlibs (= %v-%r) # up through unified25 exists only up through 10.6 starting at # libnetsnmp30 exists only on 10.5+ easier to keep all listed # to minimize .info diff among supported distros Conflicts: << net-snmp-dev (<< 5.4-1), net-snmp-ssl-dev (<< 5.4-1), net-snmp-unified-dev, net-snmp-unified15-dev, net-snmp-unified25-dev << Replaces: << net-snmp-dev (<< 5.4-1), net-snmp (<< 5.4-1), net-snmp-ssl-dev (<< 5.4-1), net-snmp-ssl (<< 5.4-1), net-snmp-unified (<< 5.6.1-13), net-snmp-unified-dev, net-snmp-unified15-dev, net-snmp-unified25-dev << BuildDependsOnly: true DocFiles: COPYING # NB: .la and binary-lib manpages were in net-snmp-unified until 5.6.1-13 Files: << include lib/libnetsnmp{,agent,helpers,mibs,trapd}.{dylib,la} share/man/man3 bin/net-snmp-config share/man/man1/net-snmp-config.1 << << SplitOff3: << Package: net-snmp Description: OBSOLETE use package 'net-snmp-unified' instead RuntimeDepends: << net-snmp-unified (>= %v-%r), fink-obsolete-packages << InstallScript: << mkdir -p %i/share/doc/installed-packages touch %i/share/doc/installed-packages/%n << << SplitOff4: << Package: net-snmp-ssl Description: OBSOLETE use package 'net-snmp-unified' instead RuntimeDepends: << net-snmp-unified (>= %v-%r), fink-obsolete-packages << InstallScript: << mkdir -p %i/share/doc/installed-packages touch %i/share/doc/installed-packages/%n << << SplitOff100: << Package: net-snmp-unified # Package layout & naming have changed many times! net-snmp, # net-snmp-ssl, ucd-snmp existed into the 10.4/ dist set, # during which net-snmp, net-snmp-ssl became net-snmp-unified, # so need to retain C/R on all dists that use that dist set. # No migration route to 10.7 (where it becomes net-snmp-bin), # but keeping C/R there minimize .info diff Conflicts: << net-snmp (<< 5.4-1), net-snmp-ssl (<< 5.4-1), ucd-snmp (<< 5.4-1) << Replaces: << net-snmp (<< 5.4-1), net-snmp-ssl (<< 5.4-1), ucd-snmp (<< 5.4-1) << Depends: << daemonic, libnetsnmp30-shlibs (>= %v-%r), openssl100-shlibs << DocFiles: AGENT.txt CHANGES COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ NEWS PORTING README* TODO Files: << bin sbin share/man share/snmp var << PreRmScript: << if [ $1 != "upgrade" ]; then daemonic disable net-snmp-unified fi << PostRmScript: << if [ $1 = "remove" ]; then rm -rf %p/share/snmp rm -rf %p/var/lib/snmp fi << # don't change DaemonicName or move to a different %n # on platforms where pkg has already existed, or the # PreRm and PostRm chunks will silently disable the # daemon and/or nuke user/system prefs during %v-%r # upgrade DaemonicName: net-snmp-unified DaemonicFile: << An SNMP daemon to respond to SNMP request packets. snmpd %p/sbin/snmpd << DescUsage: << In order to run net-snmp correctly, the community name needs to be set. The easiest way to set this is to run the 'snmpconf' program, allowing you to setup the various net-snmp configuration files. You can use the "daemonic" program to set snmpd to be run automatically. The service-name is "net-snmp-unified" for a variety of compatibility and technical reasons on OS X up through 10.6 and "net-snmp-snmpd" on OS X 10.7. Likewise, the package containing the daemon and other programs is is called "net-snmp-unified" up through 10.6 and "net-snmp-bin" on 10.7. Note: the perl modules allowing perl programs to access net-snmp programs and libraries have been removed from this package. They will some day be revived in a separate package. << << Homepage: http://net-snmp.sourceforge.net/ DescDetail: << The net-snmp package, previously known as ucd-snmp, provides tools and libraries relating to SNMP. It provides SNMP libraries (the libnetsnmp30-dev and libnetsnmp30-shlibs packages), an SNMP daemon and tools to request and set information (the net-snmp-unified package), and other features. << DescPackaging: << Customised install script to put files in correct directories. Logfile set to %p/var/log/snmpd.log Persistent directory set to %p/var/lib/snmp (allows sharing with other snmp and similar to Debian's choice of /var/lib/snmp) Default snmp version set to 3, but can be overridden using the '-v' flag for the command tools, or alternatively using the 'defVersion' option in the snmp.conf file. As of packaging of libversion30, scrap the static-libs. All symbols in .dylib are resolved via dyld. So no need to propagate -l flags for internally-used dependnecies (reduces inherited BuildDepends) dmacks added a Makefile.PL hack to make sure the perlmods link against the builddir rather than an existing installed fink- or apple-supplied libnetsnmp suite (use direct paths to library files rather than relying on -l via local -L, where the ordering could be hard to control and not "fail" even if the library somehow didn't get built). But at least this solution is a more technically correct way than the flag-sort crutch we used to have in the net-snmp packkage suites. dmacks (5.7.1-3): killed off the perlmods. They appear to be bindings for external programs to use net-snmp and its libs and it is compiled, so it would be better as a separate package with normal perlversioning and varianting controls. Embedded perl has never been enabled (disabled by default on OS X). << DescPort: << Based on the net-snmp package developed by Justin Hallett and Jeremy Higgs. 2012-05-03: TheSin: -Bumped to %v 5.7.1 aka libversion 30 -Removed unified from name and variants, on 10.7 removed obsolete packages that never existed (no upgrade route) -renamed lib and dev from 25 to 30 and using libnetsnmp -Changed link from darwin9.h to darwin11.h from 10.7 -Changed link from darwin9.h to darwin12.h from 10.8 -Had to add -I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE to CFLAGS on the make line, though this should get generated? -Patch configure so it knows about and uses darwin[11|12] properly 2013-12-06: nieder: bumped to %v 5.7.2 - this release now knows up to darwin12 - Remove portability links except for new one for darwin13 (10.9) << <<