add experimental sane-backends package, like to get canon scanner working via saned
[openwrt.git] / openwrt / package / rarpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=rarpd
6 PKG_VERSION:=1.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=04e2ca849e758d0b88c8281775ec3b58
9
10 PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 # Hack Alert!
18 # The configure script for rarpd, when used with the --with-libnet option
19 # doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
20 EXTRA_CFLAGS = -DNEW_LIBNET_INTERFACE
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,RARPD,rarpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25
26 $(PKG_BUILD_DIR)/.configured:
27 (cd $(PKG_BUILD_DIR); \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
30 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
31 LDFLAGS="-I$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/lib" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --with-libnet="$(STAGING_DIR)/usr" \
53 --with-pcap="$(STAGING_DIR)/usr" \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 $(TARGET_CONFIGURE_OPTS) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_RARPD):
67 install -d -m0755 $(IDIR_RARPD)/usr/sbin
68 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(IDIR_RARPD)/usr/sbin/
69 install -d -m0755 $(IDIR_RARPD)/etc/default
70 install -m644 ./files/rarpd.default $(IDIR_RARPD)/etc/default/rarpd
71 install -d -m0755 $(IDIR_RARPD)/etc/init.d
72 install -m755 ./files/rarpd.init $(IDIR_RARPD)/etc/init.d/rarpd
73 ln -sf rarpd $(IDIR_RARPD)/etc/init.d/S50rarpd
74 $(RSTRIP) $(IDIR_RARPD)
75 $(IPKG_BUILD) $(IDIR_RARPD) $(PACKAGE_DIR)
76
77 mostlyclean:
78 -$(MAKE) -C $(PKG_BUILD_DIR) clean
79 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.048053 seconds and 5 git commands to generate.