aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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