add gcc4 fixes, remove the NEC FC20X2JA driver patch from lcd4linux temporary
[openwrt.git] / openwrt / package / peerguardian / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=peerguardian
4 PKG_VERSION:=1.5beta
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
7
8 PKG_SOURCE_URL:=@SF/peerguardian
9 PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
10 PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
11 PKG_CAT:=zcat
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,PEERGUARDIAN,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --exec-prefix=/usr \
28 --bindir=/usr/bin \
29 --sbindir=/usr/sbin \
30 --libexecdir=/usr/lib \
31 --sysconfdir=/etc \
32 --datadir=/usr/share \
33 --localstatedir=/var \
34 --mandir=/usr/man \
35 --infodir=/usr/info \
36 --program-prefix="" \
37 --with-gnu-ld \
38 );
39 touch $@
40
41 $(PKG_BUILD_DIR)/.built:
42 $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR)
43 install -d -m0755 $(PKG_INSTALL_DIR)/usr/sbin $(PKG_INSTALL_DIR)/etc/init.d
44 install -m0755 $(PKG_BUILD_DIR)/peerguardnf $(PKG_INSTALL_DIR)/usr/sbin/
45 install -m0755 $(PKG_BUILD_DIR)/pgtext $(PKG_INSTALL_DIR)/usr/sbin/
46 install -m0644 $(PKG_BUILD_DIR)/PG.conf $(PKG_INSTALL_DIR)/etc/
47 install -m0644 $(PKG_BUILD_DIR)/p2p.p2b.p2p $(PKG_INSTALL_DIR)/etc/
48 install -m0644 files/$(PKG_NAME).init $(PKG_INSTALL_DIR)/etc/init.d/$(PKG_NAME)
49
50 $(IPKG_PEERGUARDIAN):
51 mkdir -p $(IDIR_PEERGUARDIAN)
52 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_PEERGUARDIAN)/
53 $(RSTRIP) $(IDIR_PEERGUARDIAN)/
54 $(IPKG_BUILD) $(IDIR_PEERGUARDIAN) $(PACKAGE_DIR)
This page took 0.040057 seconds and 5 git commands to generate.