From dd9f3736cba56d08e05a5def2f1eb5ede7704d5e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 20 Apr 2010 23:52:16 +0200 Subject: [PATCH] Add Makefile and example configuration file. --- Makefile | 22 ++++++++++++++++++++++ example.conf | 15 +++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Makefile create mode 100644 example.conf diff --git a/Makefile b/Makefile new file mode 100644 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 index 0000000..e1b3a6a --- /dev/null +++ b/example.conf @@ -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] + -- 2.39.5