Permalink
Browse files

.deb package might work

  • Loading branch information...
1 parent 404b6c1 commit 7644047260fe46eb5ca4d0694dddbff4595bc425 Bjarni R. Einarsson committed Aug 1, 2011
Showing with 20 additions and 10 deletions.
  1. +1 −0 MANIFEST.in
  2. +12 −8 Makefile
  3. +0 −1 debian/init.d
  4. +0 −1 debian/pagekite.logrotate
  5. +7 −0 debian/rules
View
@@ -3,6 +3,7 @@ recursive-include pagekite *.py
recursive-include scripts *
recursive-include doc *
recursive-include rpm *
+recursive-include debian *
recursive-include etc *
exclude *.pyc
exclude socks.py
View
@@ -56,14 +56,9 @@ rpm_el6-fc13:
--requires=python-SocksipyChain
-.targz:
- @python setup.py sdist
-
VERSION=`python setup.py --version`
-.debprep: .targz
+.debprep:
@rm -f setup.cfg
- @cp -v dist/pagekite*.tar.gz \
- ../pagekite-$(VERSION)_$(VERSION).orig.tar.gz
@sed -e "s/@VERSION@/$(VERSION)/g" \
< debian/control.in >debian/control
@sed -e "s/@VERSION@/$(VERSION)/g" \
@@ -72,8 +67,15 @@ VERSION=`python setup.py --version`
-e "s/@DATE@/`date -R`/g" \
< debian/changelog.in >debian/changelog
@ls -1 doc/*.? >debian/pagekite.manpages
+ @ln -fs ../etc/logrotate.d/pagekite.debian debian/pagekite.logrotate
+ @ln -fs ../etc/init.d/pagekite.debian debian/init.d
-.deb: .debprep
+.targz: .debprep
+ @python setup.py sdist
+
+.deb: .targz
+ @cp -v dist/pagekite*.tar.gz \
+ ../pagekite-$(VERSION)_$(VERSION).orig.tar.gz
@debuild -i -us -uc -b
@mv ../pagekite_*.deb dist/
@rm ../pagekite-$(VERSION)*
@@ -104,5 +106,7 @@ distclean: clean
clean:
@rm -vf sockschain *.pyc */*.pyc scripts/breeder.py .SELF
@rm -vf .appver pagekite-tmp.py MANIFEST setup.cfg
+ @rm -vrf *.egg-info build/
@rm -vf debian/files debian/control debian/copyright debian/changelog
- @rm -vrf debian/pagekite* debian/python* build/ *.egg-info
+ @rm -vrf debian/pagekite* debian/python* debian/init.d
+
View
View
@@ -5,3 +5,10 @@ DEB_PYTHON_SYSTEM=pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
+# After the basic Python installation, add files for /etc/
+common-binary-post-install-indep::
+ mkdir -m 755 -p $(CURDIR)/debian/pagekite/etc/pagekite.d/
+ install -m 644 $(CURDIR)/etc/pagekite.d/[23456789]* \
+ $(CURDIR)/debian/pagekite/etc/pagekite.d/
+ install -m 600 $(CURDIR)/etc/pagekite.d/10* \
+ $(CURDIR)/debian/pagekite/etc/pagekite.d/

0 comments on commit 7644047

Please sign in to comment.