Browse Source

Update packaging for debian (#677)

* packages/debian: remove some autogenerate files from repo

* packages/debian/configure
* packages/debian/debian/n2n.debhelper.log
* packages/debian/debian/n2n.postrm.debhelper

are all autogenerated by autoconf or the deb-helper. So there is no need to keep them
in the repo, as it will cause conflicts.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

* packages/debian: rules: use dh_prep in place of deprecated "dh_clean -k"

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

* packages/debian: also provide example communities.list file
pull/682/head
Sven Roederer 4 years ago
committed by GitHub
parent
commit
e36fac8f52
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/debian/Makefile.in
  2. 2933
      packages/debian/configure
  3. 13
      packages/debian/debian/n2n.debhelper.log
  4. 6
      packages/debian/debian/n2n.postrm.debhelper
  5. 4
      packages/debian/debian/rules.in

2
packages/debian/Makefile.in

@ -10,11 +10,13 @@ pkg:
cd ../..; make; cd - cd ../..; make; cd -
if test -e "${N2N_BUILD}"; then /bin/rm -fr ${N2N_BUILD}; fi if test -e "${N2N_BUILD}"; then /bin/rm -fr ${N2N_BUILD}; fi
mkdir -p ${N2N_BUILD}/usr/sbin ${N2N_BUILD}/usr/share/man/man1 ${N2N_BUILD}/usr/share/man/man7 ${N2N_BUILD}/usr/share/man/man8 mkdir -p ${N2N_BUILD}/usr/sbin ${N2N_BUILD}/usr/share/man/man1 ${N2N_BUILD}/usr/share/man/man7 ${N2N_BUILD}/usr/share/man/man8
mkdir -p ${N2N_BUILD}/usr/share/doc/n2n/examples
install -m755 ../../supernode ${N2N_BUILD}/usr/sbin/ install -m755 ../../supernode ${N2N_BUILD}/usr/sbin/
install -m755 ../../edge ${N2N_BUILD}/usr/sbin/ install -m755 ../../edge ${N2N_BUILD}/usr/sbin/
install -m644 ../../edge.8.gz ${N2N_BUILD}/usr/share/man/man8/ install -m644 ../../edge.8.gz ${N2N_BUILD}/usr/share/man/man8/
install -m644 ../../supernode.1.gz ${N2N_BUILD}/usr/share/man/man1/ install -m644 ../../supernode.1.gz ${N2N_BUILD}/usr/share/man/man1/
install -m644 ../../n2n.7.gz ${N2N_BUILD}/usr/share/man/man7/ install -m644 ../../n2n.7.gz ${N2N_BUILD}/usr/share/man/man7/
install -m644 ../../community.list ${N2N_BUILD}/usr/share/doc/n2n/examples/
@/bin/rm -f ../n2n*.deb @/bin/rm -f ../n2n*.deb
dpkg-buildpackage -rfakeroot -d -us -uc @BUILDPACKAGE_EXTRA@ dpkg-buildpackage -rfakeroot -d -us -uc @BUILDPACKAGE_EXTRA@
dpkg-sig --sign builder -k D1EB60BE ../n2n_*deb dpkg-sig --sign builder -k D1EB60BE ../n2n_*deb

2933
packages/debian/configure

File diff suppressed because it is too large

13
packages/debian/debian/n2n.debhelper.log

@ -1,13 +0,0 @@
dh_installdirs
dh_installdirs
dh_installinit
dh_installdebconf
dh_installman
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_link
dh_gencontrol
dh_md5sums
dh_builddeb

6
packages/debian/debian/n2n.postrm.debhelper

@ -1,6 +0,0 @@
# Automatically added by dh_installdebconf/11.1.6ubuntu2
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section

4
packages/debian/debian/rules.in

@ -26,7 +26,7 @@ clean:
install: build install: build
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k dh_prep
dh_installdirs dh_installdirs
# Build architecture-independent files here. # Build architecture-independent files here.
@ -37,7 +37,7 @@ binary-indep: build install
binary-arch: build install binary-arch: build install
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k dh_prep
dh_installdirs dh_installdirs
dh_installinit dh_installinit
dh_installdebconf dh_installdebconf

Loading…
Cancel
Save