~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
PYTHON_VERSION = 1.0a1
9
9
 
10
10
MIB_MODULES = host smux ucd-snmp/dlmod
 
11
EXCL_MIB_MODULES =
11
12
 
12
13
PYVERS=$(shell pyversions -vr)
13
14
 
21
22
DEB_DH_GENCONTROL_ARGS=-- -Vos-specific-dev="libkvm-dev"
22
23
endif
23
24
endif
 
25
ifeq (hurd,$(DEB_HOST_ARCH_OS))
 
26
IPV6 = --enable-ipv6
 
27
EXCL_MIB_MODULES += mibII
 
28
else
 
29
MIB_MODULES += host
 
30
endif
24
31
 
25
32
%:
26
33
        dh --with quilt,python-central,apport $@
27
34
 
28
35
.PHONY: override_dh_auto_configure
29
36
override_dh_auto_configure:
30
 
        ln -s /usr/share/misc/config.guess .
31
 
        ln -s /usr/share/misc/config.sub .
 
37
        ln -f -s /usr/share/misc/config.guess .
 
38
        ln -f -s /usr/share/misc/config.sub .
32
39
        libtoolize --install --copy
33
40
        aclocal
34
41
        autoheader
43
50
          --without-dmalloc --without-efence --without-rsaref \
44
51
          --with-sys-contact="root" --with-sys-location="Unknown" \
45
52
          --with-mib-modules="$(MIB_MODULES)" \
 
53
          --with-out-mib-modules="$(EXCL_MIB_MODULES)" \
46
54
          --enable-mfd-rewrites \
47
55
          --with-mnttab=/etc/mtab \
 
56
          --with-mibdirs="\$$HOME/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp" \
48
57
          --with-defaults
49
58
 
50
59
.PHONY: override_dh_clean
75
84
        mkdir -p debian/tmp/etc/snmp
76
85
        cp EXAMPLE.conf debian/tmp/etc/snmp/snmpd.conf
77
86
        cp EXAMPLE-trap.conf debian/tmp/etc/snmp/snmptrapd.conf
 
87
        cp debian/snmp.conf debian/tmp/etc/snmp/snmp.conf
78
88
        mv debian/tmp/usr/share/snmp/mib2c*.conf debian/tmp/etc/snmp
79
89
        mkdir -p debian/tmp/etc/default
80
90
        cp debian/snmpd.default debian/tmp/etc/default/snmpd
138
148
        @uscan --download-version $(UPSTREAM_VERSION) --destdir /tmp --force-download --no-symlink
139
149
        @tar xfz /tmp/net-snmp-$(UPSTREAM_VERSION).tar.gz -C /tmp
140
150
        @rm -rf /tmp/net-snmp-$(UPSTREAM_VERSION)/doc
 
151
        @cd /tmp/net-snmp-$(UPSTREAM_VERSION)/mibs; \
 
152
        cat rfclist ianalist | while read rfc mibs; do rm -f `echo $$mibs | sed 's/:/.txt /g' | sed 's/$$/.txt/'`; done
 
153
        @rm -f /tmp/net-snmp-$(UPSTREAM_VERSION)/mibs/RFC-1215.txt
141
154
        @cd /tmp; tar czf net-snmp_$(COMPAT_VERSION).orig.tar.gz net-snmp-$(UPSTREAM_VERSION)
142
155
        @rm -rf /tmp/net-snmp-$(UPSTREAM_VERSION)