1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-17 20:20:16 +02:00

replace $(IDIR_*) with $(1)

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3759 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-05-11 16:00:43 +00:00
parent 64c71ec5d9
commit 44ba04efe2
17 changed files with 82 additions and 83 deletions

View 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))

View 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))

View 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))

View 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))

View 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))

View 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))

View 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))

View 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))

View 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

View 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

View 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))

View 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))

View 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))

View 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))

View 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

View 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

View 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