add support for building Debian deb packages (requires devscripts to be installed);

pull/12/head
Bryan Biedenkapp 4 years ago
parent 8076d65982
commit cd61ad584a

@ -98,6 +98,9 @@ strip:
$($(ARCH)STRIP) $(BIN)
clean:
$(RM) $(BIN) $(OBJECTS) *.o *.d *.bak *~
$(RM) -r dpkg_build
$(RM) dvmhost_1.0.0* dvmhost-dbgsym*.deb
-$(RM) dvmhost.service
install: all
mkdir -p /opt/dvm/bin || true
@ -118,6 +121,12 @@ install: all
sed -i 's/file: tg_acl.dat/file: \/opt\/dvm\/tg_acl.dat/' /opt/dvm/config.yml
mkdir -p /opt/dvm/log || true
dpkg: clean
tar -caf ../dvmhost_1.0.0.orig.tar.gz --exclude=.git --exclude=.gitattributes --exclude=.gitignore --exclude=.vscode -v .
mv ../dvmhost_1.0.0.orig.tar.gz .
mkdir -p dpkg_build
cd dpkg_build; tar xvf ../dvmhost_1.0.0.orig.tar.gz .; debuild -us -uc
install-service: install
@useradd --user-group -M --system dvmhost --shell /bin/false || true
@usermod --groups dialout --append dvmhost || true

5
debian/changelog vendored

@ -0,0 +1,5 @@
dvmhost (1.0.0-1) UNRELEASED; urgency=medium
* Initial release.
-- MAINTAINER <gatekeep@deb-lx-fuel> Fri, 11 May 2018 09:13:00 -0400

1
debian/compat vendored

@ -0,0 +1 @@
10

11
debian/control vendored

@ -0,0 +1,11 @@
Source: dvmhost
Maintainer: Bryan Biedenkapp <gatekeep@deb-lx-fuel>
Section: misc
Priority: optional
Standards-Version: 3.9.2
Build-Depends: debhelper (>= 9)
Package: dvmhost
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Digital Voice Modem Host

1
debian/copyright vendored

@ -0,0 +1 @@
DVMProject Developers

22
debian/rules vendored

@ -0,0 +1,22 @@
#!/usr/bin/make -f
install_root = /opt
build_root = $$(pwd)/debian/dvmhost
%:
dh $@ --with=systemd
override_dh_installinit:
dh_systemd_enable -pdvmhost --name=dvmhost linux/dvmhost.service
dh_installinit -pdvmhost --no-start --noscripts
dh_systemd_start -pdvmhost --no-restart-on-upgrade
override_dh_systemd_start:
echo "Not running dh_systemd_start"
override_dh_auto_install:
dh_auto_install
mkdir -p $(build_root)/opt/dvm || true
mkdir -p $(build_root)/opt/dvm/bin || true
mkdir -p $(build_root)/opt/dvm/log || true
cp -Rv $(install_root)/dvm $(build_root)/opt

@ -0,0 +1 @@
3.0 (quilt)

@ -0,0 +1,4 @@
tar-ignore = ".vscode"
tar-ignore = ".git"
tar-ignore = ".gitignore"
tar-ignore = ".gitattributes"
Loading…
Cancel
Save

Powered by TurnKey Linux.