From 0385d4fcbed4506de2aca975c2f5e3ee2e177523 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Mon, 28 Aug 2023 13:15:23 +0100 Subject: [PATCH] Automatically generate debian changelog --- .github/workflows/tests.yml | 1 + .gitignore | 1 - packages/debian/Makefile.in | 1 + packages/debian/README | 2 +- packages/debian/configure.in | 4 ---- packages/debian/debian/changelog | 4 ++++ packages/debian/debian/changelog.in | 4 ---- 7 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 packages/debian/debian/changelog delete mode 100644 packages/debian/debian/changelog.in diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5ba54db..0586b31 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -410,6 +410,7 @@ jobs: run: | sudo apt-get update sudo apt-get install debhelper build-essential \ + devscripts \ crossbuild-essential-${{ matrix.arch }} - name: Configure diff --git a/.gitignore b/.gitignore index 4c2c448..8ce9c65 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,6 @@ build .idea .vscode .vs -packages/debian/debian/changelog packages/debian/debian/control packages/debian/debian/files packages/debian/debian/rules diff --git a/packages/debian/Makefile.in b/packages/debian/Makefile.in index 8b8b993..902718c 100644 --- a/packages/debian/Makefile.in +++ b/packages/debian/Makefile.in @@ -19,6 +19,7 @@ pkg: install -m644 ../../community.list ${N2N_BUILD}/usr/share/doc/n2n/examples/ install -m644 ../../doc/*.md ${N2N_BUILD}/usr/share/doc/n2n/ @/bin/rm -f ../n2n*.deb + DEBEMAIL=builder@example.com dch -v @N2N_VERSION@ --no-auto-nmu Auto Build dpkg-buildpackage -rfakeroot -d -us -uc -a@EXTN@ -dpkg-sig --sign builder -k D1EB60BE ../n2n_*deb @\rm -f ../n2n_*dsc ../n2n_*.gz ../n2n_*changes diff --git a/packages/debian/README b/packages/debian/README index 915a7c1..f500d7f 100644 --- a/packages/debian/README +++ b/packages/debian/README @@ -1,6 +1,6 @@ Prerequisites ------------- -apt-get install debhelper fakeroot dpkg-sig +apt-get install debhelper fakeroot dpkg-sig devscripts EdgeOS ------ diff --git a/packages/debian/configure.in b/packages/debian/configure.in index 78e799a..9f19496 100644 --- a/packages/debian/configure.in +++ b/packages/debian/configure.in @@ -32,13 +32,9 @@ if test "${with_edgex+set}" = set; then EXTN="mipsel" fi -DATE=`date -R` - AC_SUBST(N2N_VERSION) AC_SUBST(EXTN) -AC_SUBST(DATE) -AC_CONFIG_FILES(debian/changelog) AC_CONFIG_FILES(debian/files) AC_CONFIG_FILES(debian/control) AC_CONFIG_FILES(debian/rules) diff --git a/packages/debian/debian/changelog b/packages/debian/debian/changelog new file mode 100644 index 0000000..9861f54 --- /dev/null +++ b/packages/debian/debian/changelog @@ -0,0 +1,4 @@ +n2n (3.0) table; urgency=high + * Last stable release + + -- Luca Deri Wed, 27 Oct 2021 20:43:08 +0200 diff --git a/packages/debian/debian/changelog.in b/packages/debian/debian/changelog.in deleted file mode 100644 index c2271e8..0000000 --- a/packages/debian/debian/changelog.in +++ /dev/null @@ -1,4 +0,0 @@ -n2n (@N2N_VERSION@) table; urgency=high - * Last packaged version - - -- Luca Deri @DATE@