debina/rules mipsel cross-compiling
authorgandalf <gandalf@251d49ef-1d17-4917-a970-b30cf55b089b>
Fri, 5 Sep 2008 16:51:39 +0000 (16:51 +0000)
committergandalf <gandalf@251d49ef-1d17-4917-a970-b30cf55b089b>
Fri, 5 Sep 2008 16:51:39 +0000 (16:51 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@96 251d49ef-1d17-4917-a970-b30cf55b089b

CHANGELOG
debian/_mipsel/control [new file with mode: 0644]
debian/_mipsel/control.DEBIAN [new file with mode: 0644]
debian/_mipsel/rules [new file with mode: 0755]

index 89438246b7ca427378d7da9c3fc9c5e6b7347efc..f0f864694451146f635ada421b2085da9ac511f3 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,8 @@
+version 0.8.0 2008-09-05
+
+- integrated monthly and yearly summary of traffic logs into prometheus script
+- bugfix in changeset 75 - 91
+
 version 0.7.8 2008-02-02 (xChaos)
 
 - improved Enterprise Research and Planning (ERP) section
diff --git a/debian/_mipsel/control b/debian/_mipsel/control
new file mode 100644 (file)
index 0000000..8752ac6
--- /dev/null
@@ -0,0 +1,14 @@
+Source: prometheus
+Section: utils
+Priority: standard
+Maintainer: gandalf <gandalf@arachne.cz>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 0.8.1
+Version: 0.8.1
+
+Package: prometheus
+Architecture: mipsel
+Depends: iptables, iproute
+Recommends: iptables, iproute
+Description: Prometheus QoS (traffic shaper replacement for ISPs)
+
diff --git a/debian/_mipsel/control.DEBIAN b/debian/_mipsel/control.DEBIAN
new file mode 100644 (file)
index 0000000..ce3b30b
--- /dev/null
@@ -0,0 +1,9 @@
+Package: prometheus
+Version: 0.8.1
+Section: utils
+Priority: standard
+Architecture: mipsel
+Depends: iptables, iproute
+Recommends: iptables, iproute
+Maintainer: gandalf <gandalf@arachne.cz>
+Description: Prometheus QoS (traffic shaper replacement for ISPs)
diff --git a/debian/_mipsel/rules b/debian/_mipsel/rules
new file mode 100755 (executable)
index 0000000..2e78005
--- /dev/null
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+
+export CC = mipsel-linux-gcc
+export TARGET = mips-le-elf
+export TOOLPREFIX = mipsel-linux-
+export CROSS_COMPILE = mipsel-linux-
+CFLAGS = -Wall -g
+
+bindir = /usr/sbin
+mandir = /usr/share/man
+sysconfdir = /etc
+destdir = $(CURDIR)/debian/prometheus
+docdir = /usr/share/doc
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+build: build-stamp
+
+build-stamp:
+       dh_testdir
+       mipsel-linux-gcc -o $(CURDIR)/prometheus $(CURDIR)/prometheus.c
+#      $(CC) -o $(CURDIR)/prometheus-stats $(CURDIR)/optional-tools/prometheus-stats.c
+
+       touch $@
+
+clean: clean-dir
+
+clean-dir: 
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       make clean      
+       dh_clean 
+       
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+       install -m 755 -o root -g root $(CURDIR)/prometheus $(destdir)$(bindir)
+#      install -m 755 -o root -g root $(CURDIR)/prometheus-stats $(destdir)$(bindir)
+       install -m 644 -o root -g root $(CURDIR)/prometheus.1 $(destdir)$(mandir)/man1
+       install -m 644 -o root -g root $(CURDIR)/prometheus.conf.5 $(destdir)$(mandir)/man5
+       install -m 755 -o root -g root $(CURDIR)/conf/prometheus.init $(destdir)$(sysconfdir)/init.d/prometheus
+       install -m 644 -o root -g root $(CURDIR)/conf/prometheus.default $(destdir)$(sysconfdir)/default/prometheus
+       install -m 755 -o root -g root $(CURDIR)/conf/prometheus.cron $(destdir)$(sysconfdir)/cron.d/prometheus
+       install -m 600 -o root -g root $(CURDIR)/conf/prometheus.hosts $(destdir)$(sysconfdir)/prometheus/hosts
+       install -m 600 -o root -g root $(CURDIR)/conf/prometheus.conf $(destdir)$(sysconfdir)/prometheus/prometheus.conf
+       install -m 700 -o root -g root $(CURDIR)/check-kernel-qos $(destdir)$(sysconfdir)/prometheus
+       install -m 644 -o root -g root $(CURDIR)/README $(destdir)$(docdir)/prometheus
+       install -m 644 -o root -g root $(CURDIR)/CHANGELOG $(destdir)$(docdir)/prometheus
+
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs CHANGELOG
+#      dh_installdocs
+#      dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+#      dh_installman
+       dh_link
+#      dh_strip
+       mipsel-linux-strip $(destdir)$(bindir)/prometheus
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+#      dh_shlibdeps
+       cp debian/control.DEBIAN debian/prometheus/DEBIAN/control
+#      dh_gencontrol\
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary install
This page took 0.155824 seconds and 4 git commands to generate.