source: freewrt/package/iptables-snmp/Makefile@ c8b93bd

freewrt_1_0 freewrt_2_0
Last change on this file since c8b93bd was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= iptables-snmp
10PKG_VERSION:= 0.1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 8370d2f0c899461a053da491400119d1
13
14PKG_SOURCE_URL:= http://www.nobiscuit.com/iptables-snmp
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
22 (cd $(WRKBUILD); rm -f config.{cache,status}; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS) " \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --enable-largefile \
45 --disable-nls \
46 );
47 touch $@
48
49$(WRKBUILD)/.built:
50 rm -rf $(WRKINST)
51 mkdir -p $(WRKINST)
52 $(MAKE) -C $(WRKBUILD) \
53 INSTALL_PREFIX="$(WRKINST)" \
54 all install
55 touch $@
56
57$(IPKG_IPTABLES_SNMP):
58 install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib
59 $(CP) $(WRKINST)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
60 $(RSTRIP) $(IDIR_IPTABLES_SNMP)
61 $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.