| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=arpd
|
|---|
| 6 | PKG_VERSION:=0.2
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 12 | WRKBUILD:=${WRKDIR}/$(PKG_NAME)
|
|---|
| 13 |
|
|---|
| 14 | include $(TOPDIR)/package/rules.mk
|
|---|
| 15 |
|
|---|
| 16 | $(eval $(call PKG_template,ARPD,arpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 17 |
|
|---|
| 18 | $(WRKBUILD)/.configured:
|
|---|
| 19 | (cd $(WRKBUILD); rm -rf config.cache; \
|
|---|
| 20 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 21 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 22 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 23 | LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|---|
| 24 | ./configure \
|
|---|
| 25 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 26 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --build=$(GNU_HOST_NAME) \
|
|---|
| 28 | --program-prefix="" \
|
|---|
| 29 | --program-suffix="" \
|
|---|
| 30 | --prefix=/usr \
|
|---|
| 31 | --exec-prefix=/usr \
|
|---|
| 32 | --bindir=/usr/bin \
|
|---|
| 33 | --datadir=/usr/share \
|
|---|
| 34 | --includedir=/usr/include \
|
|---|
| 35 | --infodir=/usr/share/info \
|
|---|
| 36 | --libdir=/usr/lib \
|
|---|
| 37 | --libexecdir=/usr/lib \
|
|---|
| 38 | --localstatedir=/var \
|
|---|
| 39 | --mandir=/usr/share/man \
|
|---|
| 40 | --sbindir=/usr/sbin \
|
|---|
| 41 | --sysconfdir=/etc \
|
|---|
| 42 | --disable-nls \
|
|---|
| 43 | --enable-largefile \
|
|---|
| 44 | --enable-shared \
|
|---|
| 45 | --disable-static \
|
|---|
| 46 | --with-libdnet=$(STAGING_DIR)/usr \
|
|---|
| 47 | --with-libevent=$(STAGING_DIR)/usr \
|
|---|
| 48 | --with-libpcap=$(STAGING_DIR)/usr \
|
|---|
| 49 | );
|
|---|
| 50 | touch $@
|
|---|
| 51 |
|
|---|
| 52 | $(WRKBUILD)/.built:
|
|---|
| 53 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 54 | CCOPT="$(TARGET_CFLAGS)" \
|
|---|
| 55 | INCLS="-I. -I$(STAGING_DIR)/usr/include" \
|
|---|
| 56 | LIBS="-L$(STAGING_DIR)/usr/lib -lpcap -ldnet -levent"
|
|---|
| 57 | touch $@
|
|---|
| 58 |
|
|---|
| 59 | $(IPKG_ARPD):
|
|---|
| 60 | mkdir -p $(IDIR_ARPD)/usr/sbin
|
|---|
| 61 | $(CP) $(WRKBUILD)/arpd $(IDIR_ARPD)/usr/sbin/
|
|---|
| 62 | $(STRIP) $(IDIR_ARPD)/usr/sbin/*
|
|---|
| 63 | $(IPKG_BUILD) $(IDIR_ARPD) $(PACKAGE_DIR)
|
|---|