Simplify debian/rules
The default dh_makeshlibs handling should be good enough
This commit is contained in:
22
debian/rules
vendored
22
debian/rules
vendored
@@ -1,9 +1,8 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
SHARED_PKG := libgtop-2.0-11
|
|
||||||
|
|
||||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
|
||||||
|
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
@@ -11,26 +10,11 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
|
|||||||
override_dh_autoreconf:
|
override_dh_autoreconf:
|
||||||
dh_autoreconf --as-needed
|
dh_autoreconf --as-needed
|
||||||
|
|
||||||
override_dh_auto_configure:
|
|
||||||
dh_auto_configure -- \
|
|
||||||
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
|
||||||
--libexecdir=\$${libdir}/$(SHARED_PKG)
|
|
||||||
|
|
||||||
override_dh_makeshlibs:
|
|
||||||
dh_makeshlibs -V '$(SHARED_PKG) (>= 2.32.0)' -- -c4
|
|
||||||
|
|
||||||
override_dh_fixperms:
|
override_dh_fixperms:
|
||||||
dh_fixperms -X libgtop_server2
|
dh_fixperms -X libgtop_server2
|
||||||
|
|
||||||
override_dh_install:
|
execute_before_dh_install:
|
||||||
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
|
|
||||||
# The server is only necessary on kFreeBSD
|
|
||||||
dh_install --autodest -p$(SHARED_PKG) \
|
|
||||||
--ignore=debian/$(SHARED_PKG).install \
|
|
||||||
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(SHARED_PKG)/libgtop_server2
|
|
||||||
endif
|
|
||||||
find debian/tmp -name '*.la' -print -delete
|
find debian/tmp -name '*.la' -print -delete
|
||||||
dh_install
|
|
||||||
|
|
||||||
override_dh_missing:
|
override_dh_missing:
|
||||||
dh_missing --list-missing
|
dh_missing --list-missing
|
||||||
|
Reference in New Issue
Block a user