replace $(IDIR_*) with $(1)
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 May 2006 16:00:43 +0000 (16:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 11 May 2006 16:00:43 +0000 (16:00 +0000)
SVN-Revision: 3759

17 files changed:
openwrt/package/bridge/Makefile
openwrt/package/dnsmasq/Makefile
openwrt/package/dropbear/Makefile
openwrt/package/ebtables/Makefile
openwrt/package/haserl/Makefile
openwrt/package/iproute2/Makefile
openwrt/package/ipsec-tools/Makefile
openwrt/package/ipset/Makefile
openwrt/package/mtd/Makefile
openwrt/package/nvram/Makefile
openwrt/package/pcmcia-cs/Makefile
openwrt/package/pptp/Makefile
openwrt/package/robocfg/Makefile
openwrt/package/udev/Makefile
openwrt/package/wificonf/Makefile
openwrt/package/wireless-tools/Makefile
openwrt/package/zlib/Makefile

index 44856c9f166803c8ad8e3ff265b4c41ac755c16e..65fd8358e86b8b1caa8d809eee09d90b4eb8f08d 100644 (file)
@@ -29,9 +29,9 @@ define Build/Configure
 $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
 endef
 
-define Package/busybox/install
-       install -m0755 -d $(IDIR_DNSMASQ)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/
+define Package/bridge/install
+       install -m0755 -d $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,bridge))
index 76b1ac0d99012e92219ed4b245044fcdbcbdae0f..d3ce64736b7aa371eb16861cb7450cee4d3fd12c 100644 (file)
@@ -25,11 +25,11 @@ URL:=http://www.thekelleys.org.uk/dnsmasq/
 endef
 
 define Package/dnsmasq/install
-       install -m0755 -d $(IDIR_DNSMASQ)/usr/sbin
-       install -m0755 -d $(IDIR_DNSMASQ)/etc/init.d/
-       install -m0755 $(PKG_BUILD_DIR)/src/dnsmasq $(IDIR_DNSMASQ)/usr/sbin/
-       install -m0644 ./files/dnsmasq.conf $(IDIR_DNSMASQ)/etc/dnsmasq.conf
-       install -m0755 ./files/dnsmasq.init $(IDIR_DNSMASQ)/etc/init.d/S50dnsmasq
+       install -m0755 -d $(1)/usr/sbin
+       install -m0755 -d $(1)/etc/init.d/
+       install -m0755 $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
+       install -m0644 ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
+       install -m0755 ./files/dnsmasq.init $(1)/etc/init.d/S50dnsmasq
 endef
 
 $(eval $(call BuildPackage,dnsmasq))
index ea452f2f622310f8f8b76e9e31de2c6386d3b1cf..133e67a9fa16b01b1e14374ad113a07f146e25af 100644 (file)
@@ -87,22 +87,22 @@ define Buid/Compile
 endef
        
 define Package/dropbear/install
-       mkdir -p $(IDIR_DROPBEAR)/usr/bin
-       mkdir -p $(IDIR_DROPBEAR)/usr/sbin
+       mkdir -p $(1)/usr/bin
+       mkdir -p $(1)/usr/sbin
        install -m 755 $(PKG_BUILD_DIR)/dropbearmulti \
-               $(IDIR_DROPBEAR)/usr/sbin/dropbear
-       ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
-       ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
-       ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
-       ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
-       mkdir -p $(IDIR_DROPBEAR)/etc/init.d
-       install -m 755 ./files/S50dropbear $(IDIR_DROPBEAR)/etc/init.d/
+               $(1)/usr/sbin/dropbear
+       ln -sf ../sbin/dropbear $(1)/usr/bin/scp
+       ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
+       ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
+       ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
+       mkdir -p $(1)/etc/init.d
+       install -m 755 ./files/S50dropbear $(1)/etc/init.d/
 endef
 
 define Package/dropbearconvert/install
-       mkdir -p $(IDIR_DBCONVERT)/usr/bin
+       mkdir -p $(1)/usr/bin
        install -m 755 $(PKG_BUILD_DIR)/dropbearconvert \
-               $(IDIR_DBCONVERT)/usr/bin/dropbearconvert
+               $(1)/usr/bin/dropbearconvert
 endef
 
 $(eval $(call BuildPackage,dropbear))
index 4ee6833882cbe55f1087ed2170ffe21feb528bab..df551154e2ce6a2e332f0c0e3007f227914659ff 100644 (file)
@@ -24,8 +24,8 @@ URL:=http://ebtables.sourceforge.net/
 endef
 
 define Package/ebtables/install
-       install -d -m0755 $(IDIR_DNSMASQ)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/ebtables $(IDIR_EBTABLES)/usr/sbin/ebtables
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/ebtables
 endef
 
 $(eval $(call BuildPackage,ebtables))
index 8f35fbf6237607ea695c9f843e94eb04ed590cbd..2bb9fc93198d74d91a1941023eac3ae3d0253d90 100644 (file)
@@ -23,8 +23,8 @@ URL:=http://haserl.sourceforge.net/
 endef
 
 define Package/haserl/install
-       install -m0755 -d $(IDIR_HASERL)/usr/bin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/bin/haserl $(IDIR_HASERL)/usr/bin/
+       install -m0755 -d $(1)/usr/bin
+       install -m0755 $(PKG_INSTALL_DIR)/usr/bin/haserl $(1)/usr/bin/
 endef
 
 $(eval $(call BuildPackage,haserl))
index 0fe03bc82586af89caa6bfa720eb65ef23ad0561..c670ee5dac3d48ab2ce39a0da8f63d4ae706a2fa 100644 (file)
@@ -54,13 +54,13 @@ define Build/Compile
 endef
 
 define Package/ip/install
-       install -d -m0755 $(IDIR_IP)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/ip/ip $(IDIR_IP)/usr/sbin/
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/ip/ip $(1)/usr/sbin/
 endef
 
 define Package/tc/install
-       install -d -m0755 $(IDIR_TC)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/tc/tc $(IDIR_TC)/usr/sbin/
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/
 endef
 
 # $(eval $(call BuildPackage,iproute2))
index 6d27397c0f45b0473560ec3d229870bdc4a58784..9e14b400750addc709a1bc4169a5f1a40e5f5752 100644 (file)
@@ -67,16 +67,16 @@ define Build/Configure
 endef
 
 define Package/ipsec-tools/install
-       install -d -m0755 $(IDIR_IPSEC_TOOLS)/etc
-       install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/lib/
-       install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/sbin
-       $(CP) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(IDIR_IPSEC_TOOLS)/etc/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(IDIR_IPSEC_TOOLS)/usr/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(IDIR_IPSEC_TOOLS)/usr/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(IDIR_IPSEC_TOOLS)/usr/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(IDIR_IPSEC_TOOLS)/usr/sbin/
+       install -d -m0755 $(1)/etc
+       install -d -m0755 $(1)/usr/lib/
+       install -d -m0755 $(1)/usr/sbin
+       $(CP) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,ipsec-tools))
index c9388197996f587e87cef49180f04c6621ff9bc8..3b65a7d37df96c023f03f5c1d688a92dd460bb7d 100644 (file)
@@ -26,8 +26,8 @@ endef
 
 define Package/ipset/install
        $(MAKE) -C $(PKG_BUILD_DIR) \
-               DESTDIR=$(IDIR_IPSET) PREFIX=/usr install
-       rm -rf $(IDIR_IPSET)/usr/man
+               DESTDIR=$(1) PREFIX=/usr install
+       rm -rf $(1)/usr/man
 endef
 
 $(eval $(call BuildPackage,ipset))
index 381184b1d3e2ccd77f1ce3bb5da55a832c71d8f5..0d684b8f492662d42d092e45e80334dacbb7d4ba 100644 (file)
@@ -23,6 +23,6 @@ define Build/Compile
 endef
 
 define Package/mtd/install
-       install -d -m0755 $(IDIR_MTD)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/mtd $(IDIR_MTD)/sbin
+       install -d -m0755 $(1)/sbin
+       install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin
 endef
index 762eb5818392622370fa8097d21459a0c2188bbf..3b9f82dbe0525985ca222bbfd274057d2cc972a2 100644 (file)
@@ -22,12 +22,11 @@ define Build/Prepare
        $(CP) ./src/* $(PKG_BUILD_DIR)
 endef
 
-$(IPKG_NVRAM):
 define Package/nvram/install
-       install -d -m0755  $(IDIR_NVRAM)/usr/lib
-       install -d -m0755 $(IDIR_NVRAM)/usr/sbin
-       $(CP) $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
-       install -m0755 $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
+       install -d -m0755  $(1)/usr/lib
+       install -d -m0755 $(1)/usr/sbin
+       $(CP) $(PKG_BUILD_DIR)/*.so $(1)/usr/lib
+       install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin
 endef
 
 compile-targets: install-dev
index a9c7ba8001b7a0bcc85d4e819d5dc41e56d6da2e..c89ce2913f5de7d8477d2adb5786399a0f0bb7cf 100644 (file)
@@ -43,11 +43,11 @@ define Build/Configure
 endef
 
 define Package/pcmcia-cs/install
-       install -m0755 -d $(IDIR_PCMCIA_UTILS)/etc
-       install -m0755 -d $(IDIR_PCMCIA_UTILS)/usr/sbin
-       install -m0644 $(PKG_INSTALL_DIR)/etc/pcmcia $(IDIR_PCMCIA_UTILS)/etc/
-       install -m0755 $(PKG_INSTALL_DIR)/sbin/cardctl $(IDIR_PCMCIA_UTILS)/usr/sbin/
-       install -m0755 $(PKG_INSTALL_DIR)/sbin/cardmgr $(IDIR_PCMCIA_UTILS)/usr/sbin/
+       install -m0755 -d $(1)/etc
+       install -m0755 -d $(1)/usr/sbin
+       install -m0644 $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
+       install -m0755 $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
+       install -m0755 $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,pcmcia-cs))
index de7c50c2d44ffdc3b1442bb7efa7047d1f0b1062..776a668640083817d165d7e3ab1dbb8f9186daa8 100644 (file)
@@ -23,12 +23,12 @@ URL:=http://pptpclient.sourceforge.net/
 endef
 
 define Package/pptp/install
-       install -d -m0755 $(IDIR_PPTP)/sbin
-       install -d -m0755 $(IDIR_PPTP)/etc/ppp
-       install -d -m0755 $(IDIR_PPTP)/usr/sbin
-       install -m0755 ./files/ifup.pptp $(IDIR_PPTP)/sbin/ifup.pptp
-       install -m0644 ./files/options.pptp $(IDIR_PPTP)/etc/ppp/
-       install -m0755 $(PKG_BUILD_DIR)/pptp $(IDIR_PPTP)/usr/sbin/
+       install -d -m0755 $(1)/sbin
+       install -d -m0755 $(1)/etc/ppp
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 ./files/ifup.pptp $(1)/sbin/ifup.pptp
+       install -m0644 ./files/options.pptp $(1)/etc/ppp/
+       install -m0755 $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,pptp))
index 194c022a4158fb1eb35030c53184d750ee744927..8f89e7538788d5858ef90502b001a14f7061d52e 100644 (file)
@@ -23,10 +23,10 @@ define Build/Compile
 endef
 
 define Package/robocfg/install
-       install -d -m0755 $(IDIR_ROBOCFG)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/robocfg $(IDIR_ROBOCFG)/sbin/
-       $(RSTRIP) $(IDIR_ROBOCFG)
-       $(IPKG_BUILD) $(IDIR_ROBOCFG) $(PACKAGE_DIR)
+       install -d -m0755 $(1)/sbin
+       install -m0755 $(PKG_BUILD_DIR)/robocfg $(1)/sbin/
+       $(RSTRIP) $(1)
+       $(IPKG_BUILD) $(1) $(PACKAGE_DIR)
 endef
 
 $(eval $(call BuildPackage,robocfg))
index 9b7c9171ae1ada37fe4dd0df43b963fe3eb056f9..620aa1aedd2324359d7ac4433f9a838cca840ed8 100644 (file)
@@ -31,20 +31,20 @@ URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
 endef
 
 define Package/udev/install
-       install -d -m0775 $(IDIR_UDEV)/etc/udev
-       install -d -m0775 $(IDIR_UDEV)/lib/udev
-       install -d -m0775 $(IDIR_UDEV)/sbin/
-       install -d -m0775 $(IDIR_UDEV)/usr/bin/
-       install -d -m0775 $(IDIR_UDEV)/usr/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(IDIR_UDEV)/etc/udev/
-       $(CP) $(PKG_INSTALL_DIR)/sbin/udev $(IDIR_UDEV)/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(IDIR_UDEV)/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(IDIR_UDEV)/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/sbin/udevsend $(IDIR_UDEV)/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/sbin/udevstart $(IDIR_UDEV)/sbin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(IDIR_UDEV)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(IDIR_UDEV)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(IDIR_UDEV)/usr/sbin/
+       install -d -m0775 $(1)/etc/udev
+       install -d -m0775 $(1)/lib/udev
+       install -d -m0775 $(1)/sbin/
+       install -d -m0775 $(1)/usr/bin/
+       install -d -m0775 $(1)/usr/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
+       $(CP) $(PKG_INSTALL_DIR)/sbin/udev $(1)/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/sbin/udevsend $(1)/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/sbin/udevstart $(1)/sbin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,udev))
index 5e5c667af4108ed037e773a495361a613ff1f4e3..5fbaf052312ad790a064659f89fee607744bada9 100644 (file)
@@ -22,6 +22,6 @@ define Build/Compile
 endef
 
 define Package/wificonf/install
-       install -d -m0755 $(IDIR_WIFICONF)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/wifi $(IDIR_WIFICONF)/sbin/
+       install -d -m0755 $(1)/sbin
+       install -m0755 $(PKG_BUILD_DIR)/wifi $(1)/sbin/
 endef
index f981f7b5b645213e39efbe41e9ed81ea667adf70..39a4ee6b66c7d0d5db7340db1e1f645fa98cff95 100644 (file)
@@ -36,10 +36,10 @@ define Build/Compile
 endef
 
 define Package/wireless-tools/install
-       install -d -m0755  $(IDIR_WIRELESS_TOOLS)/usr/lib
-       install -d -m0755 $(IDIR_WIRELESS_TOOLS)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
+       install -d -m0755  $(1)/usr/lib
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
+       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
 endef
 
 install-dev: $(PKG_BUILD_DIR)/.built
index d3c8714bac31d7412f937af4b5ace2bd104b8357..56c0381f562db1728e1ff4636c175bedd8fc17d9 100644 (file)
@@ -49,8 +49,8 @@ define Build/Compile
 endef
 
 define Package/zlib/install
-       install -m0755 -d $(IDIR_ZLIB)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(IDIR_ZLIB)/usr/lib/
+       install -m0755 -d $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
 endef
 
 $(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built