Skip to content

Commit

Permalink
Merge pull request #142 from efernandesng/debian
Browse files Browse the repository at this point in the history
Debian systemd support
  • Loading branch information
mwarning committed Oct 26, 2016
2 parents 1ace28b + 4d9d323 commit f6f18ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Section: net
Priority: optional
Maintainer: Shiao-An Yuan <shiao.an.yuan@gmail.com>
Uploaders: Moritz Warning <moritzwarning@web.de>, Steffen Moeller <moeller@debian.org>
Build-Depends: debhelper (>= 8.0.0), dpkg-dev (>= 1.16.1~)
Build-Depends: debhelper (>= 8.0.0), dpkg-dev (>= 1.16.1~), dh-systemd (>= 1.5)
Standards-Version: 3.9.6
Homepage: http://kokoro.ucsd.edu/nodogsplash/
Vcs-Git: git://github.com/nodogsplash/nodogsplash.git
Vcs-Browser: http://github.com/nodogsplash/nodogsplash

Package: nodogsplash
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, libmicrohttpd12 (>= 0.9.50)
Description: manage access to public internet access
Nodogsplash controls access to a public Internet connection and offers
a simple way to open a Hotspot for wireless networks. It provides a
Expand Down
11 changes: 11 additions & 0 deletions debian/nodogsplash.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=NoDogSplash Captive Portal
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/nodogsplash -d 5 $OPTIONS
Restart=on-failure

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export CFLAGS += -flto
export LDFLAGS += -flto

%:
dh $@
dh $@ --with systemd

0 comments on commit f6f18ba

Please sign in to comment.