normalize Makefiles.
authorNicolas Thill <nico@openwrt.org>
Sun, 18 Jun 2006 18:30:40 +0000 (18:30 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 18 Jun 2006 18:30:40 +0000 (18:30 +0000)
SVN-Revision: 3998

19 files changed:
openwrt/package/base-files/Makefile
openwrt/package/fuse/Makefile
openwrt/package/hostap/Makefile
openwrt/package/ipsec-tools/Makefile
openwrt/package/ipset/Makefile
openwrt/package/iptables/Makefile
openwrt/package/libpcap/Makefile
openwrt/package/mini_fo/Makefile
openwrt/package/nvram/Makefile
openwrt/package/openswan/Makefile
openwrt/package/ppp/Makefile
openwrt/package/pptp/Makefile
openwrt/package/shfs/Makefile
openwrt/package/spca5xx/Makefile
openwrt/package/switch/Makefile
openwrt/package/ueagle-atm/Makefile
openwrt/package/wireless-tools/Makefile
openwrt/package/zd1211/Makefile
openwrt/package/zlib/Makefile

index c790efe..ec3dc88 100644 (file)
@@ -23,12 +23,12 @@ endif
 CONFIG_PACKAGE_base-files$(TARGET):=$(CONFIG_PACKAGE_base-files)
 
 define Package/base-files$(TARGET)
- SECTION:=base
- CATEGORY:=Base system
- DEFAULT:=y
- TITLE:=OpenWrt system scripts
- DESCRIPTION:=Base filesystem for OpenWrt
- VERSION:=$(PKG_RELEASE)
+SECTION:=base
+CATEGORY:=Base system
+DEFAULT:=y
+TITLE:=OpenWrt system scripts
+DESCRIPTION:=Base filesystem for OpenWrt
+VERSION:=$(PKG_RELEASE)
 endef
 
 define -ar7-2.4/conffiles
@@ -74,19 +74,19 @@ $(call $(TARGET)/conffiles)
 endef
 
 define Package/libgcc
- SECTION:=libs
- CATEGORY:=Libraries
- DEFAULT:=y
- TITLE:=GCC support library
- VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
- DESCRIPTION:=$(TITLE)
+SECTION:=libs
+CATEGORY:=Libraries
+DEFAULT:=y
+TITLE:=GCC support library
+VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
+DESCRIPTION:=$(TITLE)
 endef
 
 define Package/uclibc
- $(call Package/base-files$(TARGET))
- VERSION:=$(UCLIBC_VERSION)-$(PKG_RELEASE)
- TITLE:=C library
- DESCRIPTION:=C library for embedded systems
+$(call Package/base-files$(TARGET))
+VERSION:=$(UCLIBC_VERSION)-$(PKG_RELEASE)
+TITLE:=C library
+DESCRIPTION:=C library for embedded systems
 endef
 
 define Build/Prepare
index 09780e0..91d4dd6 100644 (file)
@@ -8,23 +8,23 @@ PKG_VERSION:=2.5.3
 PKG_RELEASE:=1
 PKG_MD5SUM:=9c7e8b6606b9f158ae20b8521ba2867c
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
 define Package/kmod-fuse
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=
- TITLE:=FUSE (Filesystem in UserSpacE)
- DESCRIPTION:=FUSE (Filesystem in UserSpacE)
- URL:=http://fuse.sourceforge.net/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=
+TITLE:=FUSE (Filesystem in UserSpacE)
+DESCRIPTION:=FUSE (Filesystem in UserSpacE)
+URL:=http://fuse.sourceforge.net/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Configure
@@ -81,24 +81,13 @@ define Build/Compile
                all install
 endef
 
-define Package/kmod-fuse/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
-       $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \
-               $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/bin
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
-endef
-
-
 define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/include
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse $(STAGING_DIR)/usr/include/
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse.h $(STAGING_DIR)/usr/include/
+       $(CP)   $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} \
+               $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.a $(STAGING_DIR)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so* $(STAGING_DIR)/usr/lib/
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} \
+               $(STAGING_DIR)/usr/lib/
        mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/
        $(SED) 's,-I$${includedir}/fuse,,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
@@ -106,13 +95,19 @@ define Build/InstallDev
 endef
        
 define Build/UninstallDev
-       rm -rf \
-               $(STAGING_DIR)/usr/include/fuse \
-               $(STAGING_DIR)/usr/include/fuse.h \
-               $(STAGING_DIR)/usr/lib/libfuse.a \
-               $(STAGING_DIR)/usr/lib/libfuse.so* \
+       rm -rf  $(STAGING_DIR)/usr/include/fuse{,.h} \
+               $(STAGING_DIR)/usr/lib/libfuse.{a,so*} \
                $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
 endef
 
+define Package/kmod-fuse/install
+       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \
+               $(1)/lib/modules/$(LINUX_VERSION)/
+       install -d -m0755 $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
+       install -d -m0755 $(1)/usr/bin
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
+endef
 
 $(eval $(call BuildPackage,kmod-fuse))
index b546c0b..80f8201 100644 (file)
@@ -8,21 +8,21 @@ PKG_VERSION:=0.4.9
 PKG_RELEASE:=1
 PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
 define Package/kmod-hostap
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_4_X86
- TITLE:=Host AP support for Prism2/2.5/3 IEEE 802.11b
- DESCRIPTION:=Host AP support for Prism2/2.5/3 IEEE 802.11b \\\
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_4_X86
+TITLE:=Host AP support for Prism2/2.5/3 IEEE 802.11b
+DESCRIPTION:=Host AP support for Prism2/2.5/3 IEEE 802.11b \\\
 A driver for 802.11b wireless cards based on Intersil Prism2/2.5/3 \\\
 chipset. This driver supports so called Host AP mode that allows the card \\\
 to act as an IEEE 802.11 access point. \\\
@@ -30,28 +30,22 @@ to act as an IEEE 802.11 access point. \\\
 This option includes the base Host AP driver code that is shared by \\\
 different hardware models. You will also need to enable support for \\\
 PLX/PCI/CS version of the driver to actually use the driver. \\\
- URL:=http://hostap.epitest.fi/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+URL:=http://hostap.epitest.fi/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Package/kmod-hostap-pci
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=kmod-hostap
- TITLE:=Host AP driver for Prism2.5 PCI adaptors
- DESCRIPTION:=Host AP driver for Prism2.5 PCI adaptors
- URL:=http://hostap.epitest.fi/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+$(call Package/kmod-hostap)
+DEPENDS:=kmod-hostap
+TITLE:=Host AP driver for Prism2.5 PCI adaptors
+DESCRIPTION:=Host AP driver for Prism2.5 PCI adaptors
 endef
 
 define Package/kmod-hostap-plx
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=kmod-hostap
- TITLE:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
- DESCRIPTION:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
- URL:=http://hostap.epitest.fi/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+$(call Package/kmod-hostap)
+DEPENDS:=kmod-hostap
+TITLE:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
+DESCRIPTION:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
 endef
 
 
index 4b6bfe0..58dccca 100644 (file)
@@ -74,11 +74,11 @@ endef
 
 define Package/ipsec-tools/install
        install -d -m0755 $(1)/etc
+       install -m0600 $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(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/
+       install -d -m0755 $(1)/usr/sbin
        $(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/
index b5b9c78..456f8b6 100644 (file)
@@ -6,7 +6,7 @@ PKG_NAME:=ipset
 PKG_VERSION:=2.2.3
 PKG_RELEASE:=1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/ipset-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-20050914.tar.bz2
 PKG_SOURCE_URL:=http://ipset.netfilter.org
 PKG_MD5SUM:=1709424cc2cdb925d4fb6fd5fcaefc26
index f47b936..623a64e 100644 (file)
@@ -50,7 +50,6 @@ Includes: \\\
        * libipt_conntrack \\\
        * libipt_helper \\\
        * libipt_connmark/CONNMARK
-
 endef
 
 define Package/iptables-mod-filter
@@ -62,7 +61,6 @@ DESCRIPTION:=iptables extensions for packet content inspection\\\
 Includes: \\\
        * libipt_ipp2p \\\
        * libipt_layer7 
-                                               
 endef
 
 define Package/iptables-mod-imq
@@ -73,7 +71,6 @@ TITLE:=IMQ support
 DESCRIPTION:=iptables extension for IMQ support\\\
 Includes: \\\
        * libipt_IMQ
-                                               
 endef
 
 define Package/iptables-mod-ipopt
@@ -91,7 +88,6 @@ Includes: \\\
        * libipt_tcpmms \\\
        * libipt_ttl/TTL \\\
        * libipt_unclean 
-
 endef
 
 define Package/iptables-mod-ipsec
@@ -103,7 +99,6 @@ DESCRIPTION:=iptables extensions for matching ipsec traffic\\\
 Includes: \\\
        * libipt_ah \\\
        * libipt_esp
-
 endef
 
 define Package/iptables-mod-nat
@@ -138,7 +133,6 @@ Includes: \\\
        * libipt_physdev \\\
        * libipt_pkttype \\\
        * libipt_recent
-
 endef
 
 define Package/iptables-utils
index 960caf1..d4d7e21 100644 (file)
@@ -17,11 +17,11 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 include $(TOPDIR)/package/rules.mk
 
 define Package/libpcap
- SECTION:=base
- CATEGORY:=Libraries
- TITLE:=Low-level packet capture library
- DESCRIPTION:=A system-independent library for user-level network packet capture.
- URL:=http://www.tcpdump.org/
+SECTION:=base
+CATEGORY:=Libraries
+TITLE:=Low-level packet capture library
+DESCRIPTION:=A system-independent library for user-level network packet capture.
+URL:=http://www.tcpdump.org/
 endef
 
 define Build/Configure
@@ -69,29 +69,23 @@ define Build/Compile
                all install
 endef
 
-define Package/libpcap/install
-       install -m0755 -d $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
-endef
-
 define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/include
-       $(CP)   $(PKG_INSTALL_DIR)/usr/include/pcap.h \
-               $(PKG_INSTALL_DIR)/usr/include/pcap-bpf.h \
-               $(PKG_INSTALL_DIR)/usr/include/pcap-namedb.h \
+       $(CP)   $(PKG_INSTALL_DIR)/usr/include/pcap{,-bpf,-namedb}.h \
                $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libpcap.a \
-               $(PKG_INSTALL_DIR)/usr/lib/libpcap.so* \
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} \
                $(STAGING_DIR)/usr/lib/
 endef
 
 define Build/UninstallDev
-       rm -rf  $(STAGING_DIR)/usr/include/pcap.h \
-               $(STAGING_DIR)/usr/include/pcap-bpf.h \
-               $(STAGING_DIR)/usr/include/pcap-namedb.h \
-               $(STAGING_DIR)/usr/lib/libpcap.a \
-               $(STAGING_DIR)/usr/lib/libpcap.so*
+       rm -rf  $(STAGING_DIR)/usr/include/pcap{,-bpf,-named}.h \
+               $(STAGING_DIR)/usr/lib/libpcap.{a,so*}
+endef
+
+define Package/libpcap/install
+       install -m0755 -d $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,libpcap))
index a6319f4..f2c46c9 100644 (file)
@@ -8,22 +8,21 @@ PKG_VERSION:=0.6.2pre1
 PKG_RELEASE:=1
 PKG_MD5SUM:=acd12157be25d7b3c8df90914049403e
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/mini_fo-0-6-2-pre1
 PKG_SOURCE_URL:=http://www.denx.de/twiki/pub/Know/MiniFOHome/
 PKG_SOURCE:=mini_fo-0-6-2-pre1.tar.bz2
 PKG_CAT:=bzcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/mini_fo-0-6-2-pre1
-
 include $(TOPDIR)/package/rules.mk
 
 define Package/kmod-mini-fo
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=
- TITLE:=The mini fanout overlay file system
- DESCRIPTION:=The mini fanout overlay file system
- URL:=http://www.denx.de/wiki/Know.MiniFOHome
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=
+TITLE:=The mini fanout overlay file system
+DESCRIPTION:=The mini fanout overlay file system
+URL:=http://www.denx.de/wiki/Know.MiniFOHome
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
index 5900f6f..019800a 100644 (file)
@@ -22,20 +22,19 @@ define Build/Prepare
 endef
 
 define Package/nvram/install
-       install -d -m0755  $(1)/usr/lib
+       install -d -m0755 $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(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
+       install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
 endef
 
 define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
 endef
 
 define Build/UninstallDev
-       rm -f $(STAGING_DIR)/usr/lib/libshared*.so \
-               $(STAGING_DIR)/usr/lib/libnvram*.so
+       rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
 endef
 
 $(eval $(call BuildPackage,nvram))
index 1f41ccf..4a1a42c 100644 (file)
@@ -8,23 +8,22 @@ PKG_VERSION:=2.4.5
 PKG_RELEASE:=1
 PKG_MD5SUM:=a9a8e88313faceebfc5ceb1a9da9a3c4
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://www.openswan.org/download
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-
 include $(TOPDIR)/package/rules.mk
 
 define Package/kmod-openswan
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=
- TITLE:=Openswan kernel module
- DESCRIPTION:=Openswan kernel module \\\
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=
+TITLE:=Openswan kernel module
+DESCRIPTION:=Openswan kernel module \\\
 Openswan is an implementation of IPsec for Linux.
- URL:=http://www.openswan.org/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+URL:=http://www.openswan.org/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
index 2f01400..55986f9 100644 (file)
@@ -18,65 +18,64 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 include $(TOPDIR)/package/rules.mk
 
 define Package/ppp
- SECTION:=net
- CATEGORY:=Network
- MENU:=1
- DEFAULT:=y
- TITLE:=PPP daemon
- DESCRIPTION:=PPP (Point-to-Point Protocol) daemon
- URL:=http://ppp.samba.org/
+SECTION:=net
+CATEGORY:=Network
+MENU:=1
+DEFAULT:=y
+TITLE:=PPP daemon
+DESCRIPTION:=PPP (Point-to-Point Protocol) daemon
+URL:=http://ppp.samba.org/
 endef
 
 define Package/ppp-mod-pppoa
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=ppp +linux-atm
- TITLE:=PPPoA plugin
- DESCRIPTION:=PPPoA (PPP over ATM) plugin for ppp
+SECTION:=net
+CATEGORY:=Network
+DEPENDS:=ppp +linux-atm
+TITLE:=PPPoA plugin
+DESCRIPTION:=PPPoA (PPP over ATM) plugin for ppp
 endef
 
 define Package/ppp-mod-pppoe
- SECTION:=net
- CATEGORY:=Network
- DEFAULT:=y
- DEPENDS:=ppp
- TITLE:=PPPoE plugin
- DESCRIPTION:=PPPoE (PPP over Ethernet) plugin for ppp
+SECTION:=net
+CATEGORY:=Network
+DEFAULT:=y
+DEPENDS:=ppp
+TITLE:=PPPoE plugin
+DESCRIPTION:=PPPoE (PPP over Ethernet) plugin for ppp
 endef
 
 define Package/ppp-mod-radius
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=ppp
- TITLE:=RADIUS plugin
- DESCRIPTION:=RADIUS (Remote Authentication Dial-In User Service) plugin for ppp
+SECTION:=net
+CATEGORY:=Network
+DEPENDS:=ppp
+TITLE:=RADIUS plugin
+DESCRIPTION:=RADIUS (Remote Authentication Dial-In User Service) plugin for ppp
 endef
 
 define Package/chat
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=ppp
- TITLE:=Establish conversation with a modem
- DESCRIPTION:=Utility to establish conversation with other PPP servers (via a modem)
+SECTION:=net
+CATEGORY:=Network
+DEPENDS:=ppp
+TITLE:=Establish conversation with a modem
+DESCRIPTION:=Utility to establish conversation with other PPP servers (via a modem)
 endef
 
 define Package/pppdump
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=ppp
- TITLE:=Read PPP record file
- DESCRIPTION:=Utility to read PPP record file
+SECTION:=net
+CATEGORY:=Network
+DEPENDS:=ppp
+TITLE:=Read PPP record file
+DESCRIPTION:=Utility to read PPP record file
 endef
 
 define Package/pppstats
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=ppp
- TITLE:=Report PPP statistics
- DESCRIPTION:=Utility to report PPP statistics
+SECTION:=net
+CATEGORY:=Network
+DEPENDS:=ppp
+TITLE:=Report PPP statistics
+DESCRIPTION:=Utility to report PPP statistics
 endef
 
-
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)/usr
index 776a668..08cb43a 100644 (file)
@@ -23,11 +23,11 @@ URL:=http://pptpclient.sourceforge.net/
 endef
 
 define Package/pptp/install
-       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 -d -m0755 $(1)/sbin
+       install -m0755 ./files/ifup.pptp $(1)/sbin/
+       install -d -m0755 $(1)/usr/sbin
        install -m0755 $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
 endef
 
index dacbf8d..69f8d83 100644 (file)
@@ -8,27 +8,27 @@ PKG_VERSION:=0.35
 PKG_RELEASE:=2
 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=@SF/shfs
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
 define Package/kmod-shfs
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=
- TITLE:=Shell FileSystem (ShFS)
- DESCRIPTION:=Shell FileSystem (ShFS) \\\
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=
+TITLE:=Shell FileSystem (ShFS)
+DESCRIPTION:=Shell FileSystem (ShFS) \\\
 ShFS is a simple and easy to use Linux kernel module which allows you to \\\
 mount remote filesystems using a plain shell (SSH) connection. When using \\\
 ShFS, you can access all remote files just like the local ones, only the \\\
 access is governed through the transport security of SSH.
- URL:=http://shfs.sourceforge.net/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+URL:=http://shfs.sourceforge.net/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
index 0a84d98..93eea63 100644 (file)
@@ -8,23 +8,22 @@ PKG_VERSION:=20060301
 PKG_RELEASE:=1
 PKG_MD5SUM:=4160e03c408ac254111febacf058b88a
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://mxhaard.free.fr/spca50x/Download/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-
 include $(TOPDIR)/package/rules.mk
 
 #FIXME: add proper dependency handling on kmod-usb-core & kmod-videodev packages
 define Package/kmod-spca5xx
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=@PACKAGE_KMOD_USB&&PACKAGE_KMOD_VIDEODEV
- TITLE:=Driver for SPCA5xx based USB cameras
- DESCRIPTION:=Driver for SPCA5xx based USB cameras
- URL:=http://mxhaard.free.fr/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=@PACKAGE_KMOD_USB&&PACKAGE_KMOD_VIDEODEV
+TITLE:=Driver for SPCA5xx based USB cameras
+DESCRIPTION:=Driver for SPCA5xx based USB cameras
+URL:=http://mxhaard.free.fr/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
index be99a60..e8aa6a0 100644 (file)
@@ -3,12 +3,22 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/package/kernel.mk
 
-PKG_NAME := kmod-switch
-PKG_RELEASE := 1
-PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
+PKG_NAME:=kmod-switch
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 
 include $(TOPDIR)/package/rules.mk
 
+define Package/kmod-switch
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
+DEFAULT:=y
+TITLE:=Switch drivers
+DESCRIPTION:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
+VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
+endef
 
 define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
@@ -25,16 +35,6 @@ define Build/Compile
                modules
 endef
        
-define Package/kmod-switch
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
- DEFAULT:=y
- TITLE:=Switch drivers
- DESCRIPTION:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
- VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
-endef
-
 define Package/kmod-switch/install
        install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
index 630bcf7..6f227a1 100644 (file)
@@ -8,24 +8,24 @@ PKG_VERSION:=1.0d1
 PKG_RELEASE:=1
 PKG_MD5SUM:=5da1fceb15168f4c7ad407a3e38ddecb
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://castet.matthieu.free.fr/eagle/release/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
 #FIXME: add dependency on kmod-usb-core
 define Package/kmod-ueagle-atm
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=@LINUX_2_6_BRCM
- TITLE:=Driver for Eagle 8051 based USB ADSL modems
- DESCRIPTION:=Driver for Eagle 8051 based USB ADSL modems
- URL:=http://www.eagle-usb.org/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=@LINUX_2_6_BRCM @PACKAGE_KMOD_USB
+TITLE:=Driver for Eagle 8051 based USB ADSL modems
+DESCRIPTION:=Driver for Eagle 8051 based USB ADSL modems
+URL:=http://www.eagle-usb.org/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
index 4839563..ad4edda 100644 (file)
@@ -26,10 +26,11 @@ URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
 endef
 
 define Build/Compile
+       rm -rf $(PKG_INSTALL_DIR)
+       mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
                libiw.so.28 iwmulticall
-       mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                PREFIX="$(PKG_INSTALL_DIR)" \
                INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
@@ -37,23 +38,24 @@ define Build/Compile
                install-iwmulticall
 endef
 
-define Package/wireless-tools/install
-       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
-
 define Build/InstallDev
-       mkdir -p $(STAGING_DIR)/usr/{lib,include}
+       mkdir -p $(STAGING_DIR)/usr/include
+       $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
+       mkdir -p $(STAGING_DIR)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
        ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
-       $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
 endef
        
 define Build/UninstallDev
-       rm -f $(STAGING_DIR)/usr/lib/libiw.*
-       rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
+       rm -f   $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
+               $(STAGING_DIR)/usr/lib/libiw.so*
+endef
+
+define Package/wireless-tools/install
+       install -d -m0755  $(1)/usr/lib
+       install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,wireless-tools))
index e73c0dc..a71873b 100644 (file)
@@ -8,25 +8,25 @@ PKG_VERSION:=r69
 PKG_RELEASE:=1
 PKG_MD5SUM:=c14133a3d5b27927402a492e84d2467a
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-driver-$(PKG_VERSION)
 PKG_SOURCE_URL:=http://zd1211.ath.cx/download/
 PKG_SOURCE:=$(PKG_NAME)-driver-$(PKG_VERSION).tgz
 PKG_CAT:=zcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-driver-$(PKG_VERSION)
-
 include $(TOPDIR)/package/rules.mk
 
+#FIXME: add proper dependency handling on kmod-usb-core packages
 define Package/kmod-zd1211
- SECTION:=drivers
- CATEGORY:=Drivers
- DEPENDS:=@LINUX_2_6
- TITLE:=Driver for Zydas 1211 based USB devices
- DESCRIPTION:=Driver for Zydas 1211 based USB devices \\\
+SECTION:=drivers
+CATEGORY:=Drivers
+DEPENDS:=@LINUX_2_6
+TITLE:=Driver for Zydas 1211 based USB devices
+DESCRIPTION:=Driver for Zydas 1211 based USB devices \\\
 Linux driver for the ZyDAS ZD1211 802.11b/g USB-WLAN-Chip.\\\
 Initially contributed by ZyDAS, this driver is actively maintained by the \\\
 open source community.
- URL:=http://zd1211.ath.cx/
- VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+URL:=http://zd1211.ath.cx/
+VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 define Build/Compile
@@ -54,4 +54,3 @@ define Package/kmod-zd1211/install
 endef
 
 $(eval $(call BuildPackage,kmod-zd1211))
-
index 33cbcce..02659bb 100644 (file)
@@ -8,8 +8,7 @@ PKG_RELEASE:=3
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://www.zlib.net \
-       @SF/zlib
+PKG_SOURCE_URL:=http://www.zlib.net @SF/zlib
 PKG_MD5SUM:=dee233bf288ee795ac96a98cc2e369b6
 PKG_CAT:=bzcat
 
@@ -47,27 +46,23 @@ define Build/Compile
                install
 endef
 
-define Package/zlib/install
-       install -m0755 -d $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
-endef
-
 define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/include
-       $(CP)   $(PKG_INSTALL_DIR)/usr/include/zconf.h \
-               $(PKG_INSTALL_DIR)/usr/include/zlib.h \
+       $(CP)   $(PKG_INSTALL_DIR)/usr/include/z{conf,lib}.h \
                $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libz.a \
-               $(PKG_INSTALL_DIR)/usr/lib/libz.so* \
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
                $(STAGING_DIR)/usr/lib/
 endef
        
 define Build/UninstallDev
-       rm -rf  $(STAGING_DIR)/usr/include/zconf.h \
-               $(STAGING_DIR)/usr/include/zlib.h \
-               $(STAGING_DIR)/usr/lib/libz.a \
-               $(STAGING_DIR)/usr/lib/libz.so*
+       rm -rf  $(STAGING_DIR)/usr/include/z{conf,lib}.h \
+               $(STAGING_DIR)/usr/lib/libz.{a,so*}
+endef
+
+define Package/zlib/install
+       install -m0755 -d $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,zlib))