aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2009-01-12 17:06:47 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2009-01-12 17:06:47 +0900
commitad100f42af06b3c53c08d1211fa2afd065c0d423 (patch)
treeb2ea82e04e85f21f1226a8b2c29154d7444d607f
parent7206b83f9c3f80f34f42f81c825ff35162002e68 (diff)
downloadpbuilder-ad100f42af06b3c53c08d1211fa2afd065c0d423.tar
pbuilder-ad100f42af06b3c53c08d1211fa2afd065c0d423.tar.gz
A Hook to add Non-free distribution to sources.list.
This is useful when you have to use non-free and don't really want to rebuild the tarball.
-rw-r--r--Makefile1
-rwxr-xr-xexamples/D20addnonfree9
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2129ee2..57bf847 100644
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,7 @@ install:
$(INSTALL_EXECUTABLE) examples/C10shell $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/C11screen $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/D10tmp $(DESTDIR)/usr/share/doc/pbuilder/examples
+ $(INSTALL_EXECUTABLE) examples/D20addnonfree $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/D90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/F90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/B90list-missing $(DESTDIR)/usr/share/doc/pbuilder/examples
diff --git a/examples/D20addnonfree b/examples/D20addnonfree
new file mode 100755
index 0000000..5e8e85f
--- /dev/null
+++ b/examples/D20addnonfree
@@ -0,0 +1,9 @@
+#!/bin/bash
+# example file to be used with --hookdir
+#
+# add non-free and contrib distributions to
+# /etc/apt/sources.list
+
+echo ' Add sid non-free mirror to distribution'
+echo 'deb '$(awk '/^deb / {print $2} ' < /etc/apt/sources.list | head -1 )' sid contrib non-free' >> /etc/apt/sources.list
+apt-get update