[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14978: Do not ship a copy of the changelog in tor-geoipdb package. (tor/branches/tor-0_2_0-patches/debian)



Author: weasel
Date: 2008-06-05 19:22:17 -0400 (Thu, 05 Jun 2008)
New Revision: 14978

Modified:
   tor/branches/tor-0_2_0-patches/debian/control
   tor/branches/tor-0_2_0-patches/debian/rules
Log:
Do not ship a copy of the changelog in tor-geoipdb package.  That's another 100kb right there


Modified: tor/branches/tor-0_2_0-patches/debian/control
===================================================================
--- tor/branches/tor-0_2_0-patches/debian/control	2008-06-05 23:22:15 UTC (rev 14977)
+++ tor/branches/tor-0_2_0-patches/debian/control	2008-06-05 23:22:17 UTC (rev 14978)
@@ -61,6 +61,7 @@
 Package: tor-geoipdb
 Architecture: all
 Priority: extra
+Depends: tor (>= ${source:Version})
 Description: geoIP database for Tor
  This package provides a geoIP database for Tor, i.e. it maps IPv4 addresses
  to countries.

Modified: tor/branches/tor-0_2_0-patches/debian/rules
===================================================================
--- tor/branches/tor-0_2_0-patches/debian/rules	2008-06-05 23:22:15 UTC (rev 14977)
+++ tor/branches/tor-0_2_0-patches/debian/rules	2008-06-05 23:22:17 UTC (rev 14978)
@@ -156,12 +156,17 @@
 
 	rm -f $(CURDIR)/debian/tor/usr/bin/tor-control.py
 
+	# tor-dbg doc dir
 	install -d -m 755 $(CURDIR)/debian/tor-dbg/usr/share/doc
 	ln -s tor $(CURDIR)/debian/tor-dbg/usr/share/doc/tor-dbg
 
+	# tor-geoip
 	mv $(CURDIR)/debian/tor/usr/share/tor/geoip $(CURDIR)/debian/tor-geoipdb/usr/share/tor
 	rmdir $(CURDIR)/debian/tor/usr/share/tor || true
 
+	install -d -m 755 $(CURDIR)/debian/tor-geoipdb/usr/share/doc/tor-geoipdb
+	ln -s ../tor/changelog.gz $(CURDIR)/debian/tor-geoipdb/usr/share/doc/tor-geoipdb
+	ln -s ../tor/changelog.Debian.gz $(CURDIR)/debian/tor-geoipdb/usr/share/doc/tor-geoipdb
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -171,7 +176,7 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installchangelogs ChangeLog
+	dh_installchangelogs --package=tor ChangeLog
 	dh_installdocs
 	dh_installexamples
 #	dh_install