Install all development files under /usr
This commit is contained in:
parent
b8b31887a5
commit
2904bfac3c
6 changed files with 30 additions and 7 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -13,8 +13,9 @@ nut (2.6.5-1) UNRELEASED; urgency=low
|
|||
* debian/nut-server.install: Drop newmge-shut, renamed upstream to mge-shut
|
||||
and install the old implementation (oldmge-shut) instead
|
||||
* debian/control: Drop ancient Conflicts/Provides/Replaces
|
||||
* Install all development files under /usr
|
||||
|
||||
-- Laurent Bigonville <bigon@debian.org> Mon, 13 Aug 2012 00:56:42 +0200
|
||||
-- Laurent Bigonville <bigon@debian.org> Mon, 13 Aug 2012 01:11:26 +0200
|
||||
|
||||
nut (2.6.4-2) unstable; urgency=low
|
||||
|
||||
|
|
1
debian/libupsclient1-dev.dirs
vendored
1
debian/libupsclient1-dev.dirs
vendored
|
@ -1 +0,0 @@
|
|||
/lib
|
5
debian/libupsclient1-dev.install
vendored
5
debian/libupsclient1-dev.install
vendored
|
@ -1,5 +1,4 @@
|
|||
lib/*/libupsclient.so
|
||||
usr/lib/*/libupsclient.so
|
||||
lib/*/libupsclient.a
|
||||
usr/lib/*/pkgconfig/
|
||||
usr/lib/*/libupsclient.a
|
||||
usr/lib/*/pkgconfig/libupsclient.pc
|
||||
usr/include
|
||||
|
|
20
debian/patches/0003-install-dev-files-in-usr.patch
vendored
Normal file
20
debian/patches/0003-install-dev-files-in-usr.patch
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
Description: Adjust .pc paths to install development files to /usr
|
||||
Author: Laurent Bigonville <bigon@debian.org>
|
||||
Forwarded: not-needed
|
||||
|
||||
--- a/lib/libnutscan.pc.in
|
||||
+++ b/lib/libnutscan.pc.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-prefix=@prefix@
|
||||
+prefix=/usr
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
--- a/lib/libupsclient.pc.in
|
||||
+++ b/lib/libupsclient.pc.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-prefix=@prefix@
|
||||
+prefix=/usr
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -1 +1,2 @@
|
|||
0003-install-dev-files-in-usr.patch
|
||||
0002-nut-monitor-paths.patch
|
||||
|
|
7
debian/rules
vendored
7
debian/rules
vendored
|
@ -62,8 +62,11 @@ common-install-arch::
|
|||
mv $${f} $(CURDIR)/debian/tmp/etc/nut/$${nf}; \
|
||||
done
|
||||
|
||||
# Create -dev symlink under /usr
|
||||
ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.1.1.0 \
|
||||
# Move -dev file to /usr
|
||||
mv $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libupsclient.a \
|
||||
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.a
|
||||
rm -f $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
|
||||
ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.1 \
|
||||
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
|
||||
|
||||
# Install systemd files only on systems where it's supported
|
||||
|
|
Loading…
Reference in a new issue