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
/
34 rm -rf
$(PKG_INSTALL_DIR
)
35 mkdir
-p
$(PKG_INSTALL_DIR
)
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
39 LDIR
="$(PKG_BUILD_DIR)" \
40 AMSEL_INCLUDE
="$(STAGING_DIR)/usr/include" \
41 OPT_LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
43 CONFIG
="$(PKG_BUILD_DIR)/etc/amsel" \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
49 define Package
/amwall
/install
50 $(INSTALL_DIR
) $(1)/usr
/bin
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
54 $(INSTALL_DIR
) $(1)/etc
/amsel
55 $(CP
) $(PKG_INSTALL_DIR
)/etc
/amsel
* $(1)/etc
/
58 $(eval
$(call BuildPackage
,amwall
))