2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.amselinux.net
/source
/
17 PKG_MD5SUM
:=a8b6438e7fd9ccadc9f68824ae62349c
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
30 URL
:=http
://www.amselinux.net
/
35 rm -rf
$(PKG_INSTALL_DIR
)
36 mkdir
-p
$(PKG_INSTALL_DIR
)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
40 LDIR
="$(PKG_BUILD_DIR)" \
41 AMSEL_INCLUDE
="$(STAGING_DIR)/usr/include" \
42 OPT_LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
44 CONFIG
="$(PKG_BUILD_DIR)/etc/amsel" \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/amwall
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
55 $(INSTALL_DIR
) $(1)/etc
/amsel
56 $(CP
) $(PKG_INSTALL_DIR
)/etc
/amsel
* $(1)/etc
/
59 $(eval
$(call BuildPackage
,amwall
))