Hi all.

Find attached a simple patch suggestion that allows a project-specific /etc/ipkg.conf file also instead of only a generic one.

Greetz
--
Sepp "ZaP" Holzmayr

please reply to: [email protected]
"Never underestimate the bandwidth of a freight train full of DAT tapes. Only the round-trip is a little suboptimal."
--- ptxdist/rules/ipkg.in	2009-07-03 15:12:52.000000000 +0200
+++ ews2/updater/rules/ipkg.in	2009-07-09 15:19:40.000000000 +0200
@@ -33,29 +33,37 @@
 	  If selected, ipkg will be installed with a wrapper script
 	  which provides basic logging facilities
 
-config IPKG_GENERIC_IPKG_CONF
+config IPKG_IPKG_CONF
 	bool
 	prompt "install /etc/ipkg.conf"
 	default y
 	depends on ROOTFS
 	help
-	  Installs a generic /etc/ipkg.conf file.
+	  Installs a /etc/ipkg.conf file
 
-	config IPKG_GENERIC_IPKG_CONF_URL
-		depends on IPKG_GENERIC_IPKG_CONF
-		string
-		prompt "IPKG Update Site URL"
-		default "src http://some/path";
+	config IPKG_GENERIC_IPKG_CONF
+		bool
+		prompt "use generic /etc/ipkg.conf"
+		default y
+		depends on IPKG_IPKG_CONF
 		help
-		  This path is put into the /etc/ipkg.conf file and specifies
-		  where to find an IPKG packet feed.
+		  Installs a generic /etc/ipkg.conf file.
 
-		  Note: Keep the "src" in front of the URL, its required if the
-		  URL should be used.
+		config IPKG_GENERIC_IPKG_CONF_URL
+			depends on IPKG_GENERIC_IPKG_CONF
+			string
+			prompt "IPKG Update Site URL"
+			default "src http://some/path";
+			help
+			  This path is put into the /etc/ipkg.conf file and specifies
+			  where to find an IPKG packet feed.
 
-		  If you don't want to use this feature, keep the whole entry empty.
+			  Note: Keep the "src" in front of the URL, its required if the
+			  URL should be used.
 
-		  Important: To make ipkg work at runtime, you must install this
-		  configuration file. Without it you can't install new packages.
+			  If you don't want to use this feature, keep the whole entry empty.
+
+			  Important: To make ipkg work at runtime, you must install this
+			  configuration file. Without it you can't install new packages.
 
 endif
--- ptxdist/rules/ipkg.make	2009-07-09 14:32:41.000000000 +0200
+++ ews2/updater/rules/ipkg.make	2009-07-09 15:19:29.000000000 +0200
@@ -89,6 +89,11 @@
 ifdef PTXCONF_IPKG_GENERIC_IPKG_CONF
 	@$(call install_copy, ipkg, 0, 0, 0644, \
 		$(PTXDIST_TOPDIR)/generic/etc/ipkg.conf, /etc/ipkg.conf, n)
+else
+	@$(call install_alternative, ipkg, 0, 0, 0644, /etc/ipkg.conf)
+endif
+
+ifdef PTXCONF_IPKG_IPKG_CONF
 	@$(call install_replace, ipkg, /etc/ipkg.conf, @SRC@, \
 		$(PTXCONF_IPKG_GENERIC_IPKG_CONF_URL))
 	@$(call install_replace, ipkg, /etc/ipkg.conf, @ARCH@, \
--
ptxdist mailing list
[email protected]

Reply via email to