Skip to content
Snippets Groups Projects
Commit 3827c99d authored by elliotkendall's avatar elliotkendall
Browse files

Support actually building a Debian package

parent 547cf242
No related branches found
No related tags found
No related merge requests found
...@@ -4,19 +4,16 @@ CC = gcc ...@@ -4,19 +4,16 @@ CC = gcc
DEBUG = -g DEBUG = -g
CFLAGS = -Wall -c $(DEBUG) CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG) LFLAGS = -Wall $(DEBUG)
DESTDIR = /
.PHONY : $(OBJS) .PHONY : $(OBJS)
fanout : fanout.c fanout : fanout.c
$(CC) $(LFLAGS) $(OBJS) -o $(PROJ) fanout.c $(CC) $(LFLAGS) $(OBJS) -o $(PROJ) fanout.c
debian-install: install:
-groupadd -f fanout mkdir -p $(DESTDIR)/usr/sbin
-useradd -g fanout -d /var/run/fanout -m -s /bin/false fanout cp fanout $(DESTDIR)/usr/sbin/fanout
cp fanout /usr/local/bin
cp debian/fanout.init /etc/init.d/fanout
cp debian/fanout.default /etc/default/fanout
clean: clean:
\rm fanout test \! -f fanout || rm fanout
fanout (0.1-1) UNRELEASED; urgency=medium
* Initial release.
-- MAINTAINER <elliot.kendall@gmail.com> Fri, 06 Jun 2014 11:06:41 -0700
9
Source: fanout
Maintainer: Elliot Kendall <elliot.kendall@gmail.com>
Section: misc
Priority: optional
Standards-Version: 3.9.2
Build-Depends: debhelper (>= 9)
Package: fanout
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: simple pubsub server
fanout is a simple pubsub server
MIT License
Copyright (c) 2011-2012 Travis Glenn Hansen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# Default settings for fanout server # Default settings for fanout server
# Options to pass to fanout # Options to pass to fanout
FANOUT_OPTS="--daemon --pidfile=/var/run/fanout.pid --run-as=fanout:fanout --logfile=/var/log/fanout.log --debug-level=2" FANOUT_OPTS="--daemon --pidfile=/var/run/fanout.pid --run-as=fanout:fanout --logfile=/var/log/fanout/fanout.log --debug-level=2"
/var/log/fanout
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
set -e set -e
SERVICE=fanout SERVICE=fanout
DAEMON=/usr/local/bin/$SERVICE DAEMON=/usr/sbin/$SERVICE
PIDFILE=/var/run/$SERVICE.pid PIDFILE=/var/run/$SERVICE.pid
test -x $DAEMON || exit 0 test -x $DAEMON || exit 0
......
groupadd -f fanout
useradd -g fanout -d /var/run/fanout -m -s /bin/false fanout
chown fanout:fanout /var/log/fanout
/etc/init.d/fanout stop
userdel fanout
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/fanout install
3.0 (quilt)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment