[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

packages out of repository



Hi

I made a (newbie) modification in make-live to attempt a personal
demand. In my university, for a project, my teatcher request that i use
the Sun's Java and other things. So, i made this changes. If you think
that is util, is my contribution.

Bests

Claudio
-------------- next part --------------
--- /etc/default/make-live.orig	2006-06-07 11:12:41.000000000 -0400
+++ /etc/default/make-live	2006-06-07 09:43:41.000000000 -0400
@@ -44,3 +44,7 @@
 # Where is the chroot on the netboot server?
 # Default: none
 LIVE_SERVER_PATH="/srv/debian-live/chroot"
+
+# Extra packages, out of a repository
+# Default: none
+EXTRA_PACKAGES="/home/filhocf/pacotes"
--- /usr/share/make-live/scripts/chroot.sh.orig	2006-06-07 11:13:10.000000000 -0400
+++ /usr/share/make-live/scripts/chroot.sh	2006-06-07 10:34:33.000000000 -0400
@@ -62,6 +62,18 @@
 		chroots "apt-get install --yes ${LIVE_PACKAGES}"
 	fi
 
+	if [ "${EXTRA_PACKAGES}" ]
+	then
+		# echo resultado do extra: "${EXTRA_PACKAGES}"
+		for i in "${EXTRA_PACKAGES}"/*.deb
+		do
+			j=`basename $i`
+			cp -v $i "${LIVE_ROOT}"/chroot/tmp/
+			chroots "dpkg -i --force-depends /tmp/$j"
+			chroots "apt-get -f install"
+		done
+	fi
+
 	# Cleanup
 	chroots "apt-get clean"
 	chroots "rm -rf /var/cache/bootstrap"

Reply to: