]> git.ipfire.org Git - oddments/cappie.git/commitdiff
Add Makefile and example configuration file.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2010 21:52:16 +0000 (23:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2010 21:52:16 +0000 (23:52 +0200)
Makefile [new file with mode: 0644]
example.conf [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..be7b5fe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+# Makefile for cappie
+
+PREFIX=/usr
+PYTHON_VERSION=2.6
+PYTHON_LIB=/usr/lib/python$(PYTHON_VERSION)/site-packages
+
+ETCDIR=/etc/cappie
+SBINDIR=$(PREFIX)/sbin
+
+all:
+
+clean:
+       rm -rfv cappie/*.py{c,o}
+
+install:
+       -mkdir $(DESTDIR)/$(SBINDIR)
+       install -m 755 -v cappied $(DESTDIR)/$(SBINDIR)
+       -mkdir $(DESTDIR)/$(PYTHON_LIB)
+       cp -vfr cappie $(DESTDIR)/$(PYTHON_LIB)/
+       -mkdir $(DESTDIR)/$(ETCDIR)
+       cp -vf example.conf $(DESTDIR)/$(ETCDIR)/cappie.conf
+
diff --git a/example.conf b/example.conf
new file mode 100644 (file)
index 0000000..e1b3a6a
--- /dev/null
@@ -0,0 +1,15 @@
+# This is an example configuration file for cappie
+#
+
+# There will be a [global] section for parameters
+# that will affect the core thread and general
+# options on the interface threads.
+
+[global]
+
+
+# Every interface section can specify options
+# that are only relevant for this specific interface.
+
+[eth0]
+