Codebase list unbound / 7f1acc2
Add pkg.unbound.libonly build profile. (Closes: #847130) Helmut Grohne authored 7 years ago Robert Edmonds committed 7 years ago
3 changed file(s) with 34 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
88 autotools-dev,
99 bison,
1010 debhelper (>= 9~),
11 dh-apparmor,
11 dh-apparmor <!pkg.unbound.libonly>,
1212 dh-autoreconf,
13 dh-python,
14 dh-systemd,
13 dh-python <!pkg.unbound.libonly>,
14 dh-systemd <!pkg.unbound.libonly>,
1515 dpkg-dev (>= 1.16.1~),
1616 flex,
1717 libevent-dev,
1818 libexpat1-dev,
19 libfstrm-dev,
20 libprotobuf-c-dev,
21 libssl-dev,
19 libfstrm-dev <!pkg.unbound.libonly>,
20 libprotobuf-c-dev <!pkg.unbound.libonly>,
21 libssl-dev <!pkg.unbound.libonly>,
2222 libtool,
2323 nettle-dev,
2424 pkg-config,
25 protobuf-c-compiler,
26 python-all-dev:any (>= 2.6.6-3~),
27 libpython-all-dev (>= 2.6.6-3~),
28 python3-all-dev:any,
29 libpython3-all-dev,
30 swig,
25 protobuf-c-compiler <!pkg.unbound.libonly>,
26 python-all-dev:any (>= 2.6.6-3~) <!pkg.unbound.libonly>,
27 libpython-all-dev (>= 2.6.6-3~) <!pkg.unbound.libonly>,
28 python3-all-dev:any <!pkg.unbound.libonly>,
29 libpython3-all-dev <!pkg.unbound.libonly>,
30 swig <!pkg.unbound.libonly>,
3131 Standards-Version: 3.9.8
3232 Homepage: https://www.unbound.net/
3333 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-dns/unbound.git
6868 ${misc:Depends},
6969 ${python:Depends},
7070 ${shlibs:Depends},
71 Build-Profiles: <!pkg.unbound.libonly>
7172 Description: library implementing DNS resolution and validation (Python bindings)
7273 Python extension module for libunbound.
7374 .
8283 ${misc:Depends},
8384 ${python3:Depends},
8485 ${shlibs:Depends},
86 Build-Profiles: <!pkg.unbound.libonly>
8587 Description: library implementing DNS resolution and validation (Python3 bindings)
8688 Python3 extension module for libunbound.
8789 .
101103 Enhances:
102104 munin-node,
103105 Suggests: apparmor
106 Build-Profiles: <!pkg.unbound.libonly>
104107 Description: validating, recursive, caching DNS resolver
105108 Unbound is a recursive-only caching DNS server which can perform DNSSEC
106109 validation of results. It implements only a minimal amount of authoritative
119122 unbound (<< 1.4.13-1),
120123 Breaks:
121124 unbound (<< 1.4.13-1),
125 Build-Profiles: <!pkg.unbound.libonly>
122126 Description: utility to securely fetch the root DNS trust anchor
123127 unbound-anchor is a utility which securely fetches or updates the root DNS
124128 zone trust anchor. A copy of the current root anchor and root update
130134 Depends:
131135 ${misc:Depends},
132136 ${shlibs:Depends},
137 Build-Profiles: <!pkg.unbound.libonly>
133138 Description: reimplementation of the 'host' command
134139 This package provides the 'unbound-host' program that is bundled with the
135140 Unbound domain name server. This version differs from the one provided in the
0 usr/include/unbound.h usr/include
1 usr/share/man/man3/libunbound.3 usr/share/man/man3
0 debian/tmp-lib/usr/include/unbound.h usr/include
1 debian/tmp-lib/usr/share/man/man3/libunbound.3 usr/share/man/man3
77 endif
88
99 LIBRARY = libunbound2
10 DOPACKAGES = $(shell dh_listpackages)
1011
1112 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
1213 DPKG_EXPORT_BUILDFLAGS = 1
2627 dh_autoreconf
2728 dh_autotools-dev_updateconfig
2829
30 ifneq (,$(filter unbound unbound-anchor unbound-host,$(DOPACKAGES)))
2931 # first build -- build unbound daemon
3032 PYTHON_VERSION="$(shell py3versions -vd)" \
3133 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
4244 $(MAKE)
4345 $(MAKE) install DESTDIR="$(CURDIR)/debian/tmp"
4446 $(MAKE) clean
47 endif
4548
4649 # second build -- build libunbound only, against nettle
4750 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
6063 $(CURDIR)/debian/libunbound-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libunbound.pc
6164 $(MAKE) clean
6265
66 ifneq (,$(filter python-unbound,$(DOPACKAGES)))
6367 # third build - pyunbound for Python 2
6468 PYTHON_VERSION="$(shell pyversions -vd)" \
6569 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
7680 libunbound/python/unbound.py \
7781 debian/python-unbound/usr/lib/$(shell pyversions -d)/dist-packages
7882 $(MAKE) clean
83 endif
7984
85 ifneq (,$(filter python3-unbound,$(DOPACKAGES)))
8086 # fourth build - pyunbound for Python 3
8187 PYTHON_VERSION="$(shell py3versions -vd)" \
8288 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
9399 libunbound/python/unbound.py \
94100 debian/python3-unbound/usr/lib/$(shell py3versions -d)/dist-packages
95101 $(MAKE) clean
102 endif
96103
97104 dh_installdirs
98105
106 ifneq (,$(filter unbound unbound-anchor unbound-host,$(DOPACKAGES)))
99107 dh_systemd_enable -p unbound
100108 dh_systemd_enable -p unbound --name=unbound-resolvconf
101109 dh_systemd_start -p unbound unbound.service
108116 install -m 0644 doc/example.conf debian/unbound/usr/share/doc/unbound/examples/unbound.conf
109117 install -m 0644 contrib/update-anchor.sh debian/unbound/usr/share/doc/unbound/contrib
110118 install -D -m 0755 contrib/unbound_munin_ debian/unbound/usr/share/munin/plugins/unbound_munin_
119 endif
111120
112121 mkdir -p debian/libunbound-dev/usr/lib/$(DEB_HOST_MULTIARCH)
113122 mv \
125134 dh_installchangelogs
126135 dh_installdocs
127136 dh_installman
137 ifneq (,$(filter python-unbound,$(DOPACKAGES)))
128138 dh_python2 --no-guessing-versions
139 endif
140 ifneq (,$(filter python3-unbound,$(DOPACKAGES)))
129141 dh_python3
142 endif
130143 dh_strip
131144 dh_compress -Xusr/share/doc/unbound/examples/unbound.conf
132145
146 ifneq (,$(filter unbound unbound-anchor unbound-host,$(DOPACKAGES)))
133147 mkdir -p debian/unbound/etc/apparmor.d
134148 cp debian/apparmor-profile debian/unbound/etc/apparmor.d/usr.sbin.unbound
135149 dh_apparmor --profile-name=usr.sbin.unbound -punbound
150 endif
136151
137152 dh_fixperms
138153 dh_makeshlibs