Follow multi-arch policy

This commit is contained in:
Laurent Bigonville 2012-08-12 22:18:54 +02:00
parent e25bc18d96
commit 8141cb7297
6 changed files with 22 additions and 11 deletions

9
debian/rules vendored
View file

@ -14,7 +14,8 @@ DEB_CONFIGURE_PREFIX :=
DEB_CONFIGURE_SYSCONFDIR := /etc/nut
DEB_CONFIGURE_INCLUDEDIR := /usr/include
DEB_CONFIGURE_MANDIR := /usr/share/man
DEB_CONFIGURE_EXTRA_FLAGS := --without-ssl \
DEB_CONFIGURE_EXTRA_FLAGS := --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
--without-ssl \
--with-cgi \
--with-dev \
--enable-static \
@ -25,7 +26,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := --without-ssl \
--with-htmlpath=/usr/share/nut/www \
--with-pidpath=/var/run/nut \
--datadir=/usr/share/nut \
--with-pkgconfig-dir=/usr/lib/pkgconfig \
--with-pkgconfig-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
--with-user=nut --with-group=nut
ifeq (linux,$(DEB_HOST_ARCH_OS))
@ -61,6 +62,10 @@ 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 \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
common-install-indep::
#install documentation
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf