make deb and make tgz works now (RPM directory not up-to date)
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sat, 2 Feb 2008 13:15:33 +0000 (13:15 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Sat, 2 Feb 2008 13:15:33 +0000 (13:15 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@68 251d49ef-1d17-4917-a970-b30cf55b089b

Makefile
debian/changelog
debian/prometheus.debian [moved from prometheus.debian with 53% similarity]
debian/rules

index 98df055..eb33db8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,16 +4,13 @@ CFLAGS=-std=c99 -Wall
 prefix=/usr
 mandir=$(prefix)/share/man
 sbindir=$(prefix)/sbin
-sysconfdir=/etc/
+sysconfdir=/etc
 
 main: prometheus
        $(CC) -o prometheus prometheus.c
 
 deb: main
-       arch=`dpkg-architecture -qDEB_HOST_ARCH`
-       maintainer="gandalf <gandalf@arachne.cz>"
-       #patch -Nl <debian/prometheus.patch
-       sed -e "s/__ARCHITECTURE__/$(arch)/" -e "s/__VERSION__/($VERSION)/" -e "s/__PACKAGE__/($PACKAGE)/" -e "s/__MAINTAINER__/$(maintainer)/" debian/prometheus.control > debian/control
+       debian/prometheus.debian
        dpkg-buildpackage
 
 tgz: clean
@@ -21,7 +18,7 @@ tgz: clean
        rm -rf ../$(PACKAGE)-$(VERSION)/.svn/
        rm -rf ../$(PACKAGE)-$(VERSION)/*/.svn/
        rm -rf ../$(PACKAGE)-$(VERSION)/*~ $(PACKAGE)-$(VERSION)/*/*~
-       tar -czf $(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
+       tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
        rm -rf ../$(PACKAGE)-$(VERSION)
 
 install: main
index 9381195..3b15010 100644 (file)
@@ -1,3 +1,9 @@
+prometheus (0.7.8-1) stable; urgency=low
+
+  * Experimental package from version 0.7.8
+
+ -- xChaos <xchaos@arachne.cz>  Thu,  02 Feg 2008 14:06:00 +0100
+
 prometheus (0.7.7-2) stable; urgency=low
 
   * Otestovani instalace a oprava chyb - prvni bastl ;-)
similarity index 53%
rename from prometheus.debian
rename to debian/prometheus.debian
index d5487e5..c17d10c 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/bash
 
 arch=`dpkg-architecture -qDEB_HOST_ARCH`
-version=`grep VERSION Makefile | gawk -F= '{ print $2 }'`
-package=`grep PACKAGE Makefile | gawk -F= '{ print $2 }'`
-maintainer='gandalf <gandalf@arachne.cz>'
+version=`grep VERSION= Makefile | cut -d = -f 2`
+package=`grep PACKAGE= Makefile | cut -d = -f 2`
+maintainer="gandalf <gandalf@arachne.cz>"
+control=debian/prometheus.control
 
 #patch -Nl <debian/prometheus.patch
 
@@ -11,7 +12,6 @@ sed     -e "s/__ARCHITECTURE__/$arch/" \
         -e "s/__VERSION__/$version/" \
         -e "s/__PACKAGE__/$package/" \
         -e "s/__MAINTAINER__/$maintainer/" \
-        debian/prometheus.control > debian/control
+        $control > debian/control
 
-dpkg-buildpackage
                                
index 78ad66a..6d9f278 100755 (executable)
@@ -6,7 +6,7 @@ CFLAGS = -Wall -g
 bindir = /usr/sbin
 mandir = /usr/share/man
 sysconfdir = /etc
-destdir = $(CURDIR)/deb/prometheus
+destdir = $(CURDIR)/debian/prometheus
 docdir = /usr/share/doc
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
This page took 0.182348 seconds and 4 git commands to generate.