Generate debian / asus-optware package

This commit is contained in:
Nick Peng
2018-07-18 00:14:50 +08:00
parent 806acb2f96
commit 9391f709fc
14 changed files with 119 additions and 36 deletions

View File

@@ -0,0 +1,5 @@
smartdns (1.2018.7.9) stable; urgency=low
* Initial build
-- initial release. <pymumu@gmail.com> Mon, 9 jul 2018 21:20:28 +0800

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1,9 @@
Source: smartdns
Maintainer: Nick Peng <pymumu@gmail.com>
Build-Depends: debhelper (>= 8.0.0)
Version:
Section: net
Package: smartdns
Priority: extra
Architecture: armhf
Description: a smartdns server

View File

@@ -0,0 +1,7 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: smartdns
Source: http://github.com/pymumu/smartdns
Files: *
Copyright: 2018 Nick peng
License: proprietary

View File

@@ -0,0 +1,4 @@
#!/bin/sh
systemctl stop smartdns
systemctl disable smartdns

View File

@@ -0,0 +1,21 @@
#!/usr/bin/make -f
%:
dh $@ --with systemd --builddirectory=./target/
clean:
make -C ../src clean
build:
make -C ../src
override_dh_systemd_enable:
dh_systemd_enable --name=smartdns
override_dh_installinit:
dh_installinit --name=smartdns
override_dh_installdeb:
dh_installdeb
cp ../systemd/smartdns.service ${CURDIR}/debian/