2005-05-14 23:48:27 +03:00
|
|
|
# $Id$
|
|
|
|
|
2005-05-02 15:46:32 +03:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=shat
|
2005-05-18 18:34:00 +03:00
|
|
|
PKG_VERSION:=0.9.5
|
2005-05-02 15:46:32 +03:00
|
|
|
PKG_RELEASE:=1
|
2005-05-18 18:34:00 +03:00
|
|
|
PKG_MD5SUM:= fe29d5862a333af1f390052471a6dd0a
|
2005-05-14 23:48:27 +03:00
|
|
|
|
2005-05-02 15:46:32 +03:00
|
|
|
PKG_SOURCE_URL:=http://world.maxina.de/src/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2005-05-14 23:48:27 +03:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-05-02 15:46:32 +03:00
|
|
|
|
2005-05-14 23:48:27 +03:00
|
|
|
$(eval $(call PKG_template,SHAT,shat,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-05-02 15:46:32 +03:00
|
|
|
|
2005-05-14 23:48:27 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-05-20 00:22:09 +03:00
|
|
|
touch $@
|
2005-05-14 23:48:27 +03:00
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
2005-05-02 15:46:32 +03:00
|
|
|
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DVERSION=\\\"$(PKG_VERSION)\\\" -DDROP_NETBIOS"
|
2005-05-20 00:22:09 +03:00
|
|
|
touch $@
|
2005-05-14 23:48:27 +03:00
|
|
|
|
|
|
|
$(IPKG_SHAT):
|
|
|
|
install -d -m0755 $(IDIR_SHAT)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/src/shatd $(IDIR_SHAT)/usr/sbin/
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/src/shatc $(IDIR_SHAT)/usr/sbin/
|
|
|
|
$(RSTRIP) $(IDIR_SHAT)
|
|
|
|
$(IPKG_BUILD) $(IDIR_SHAT) $(PACKAGE_DIR)
|