1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=0fb2bc5501b031604fc56eec3bd35fa4
8 PKG_SOURCE_URL
:=@SF
/peerguardian
9 PKG_SOURCE
:=pglinux-
$(PKG_VERSION
).
tar.gz
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/pglinux-
$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,PEERGUARDIAN
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
:
19 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
20 $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(TARGET_CFLAGS)" \
23 --target
=$(GNU_TARGET_NAME
) \
24 --host
=$(GNU_TARGET_NAME
) \
25 --build
=$(GNU_HOST_NAME
) \
30 --libexecdir
=/usr
/lib \
32 --datadir=/usr
/share \
33 --localstatedir
=/var \
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
)
51 mkdir
-p
$(IDIR_PEERGUARDIAN
)
52 $(CP
) $(PKG_INSTALL_DIR
)/* $(IDIR_PEERGUARDIAN
)/
53 $(RSTRIP
) $(IDIR_PEERGUARDIAN
)/
54 $(IPKG_BUILD
) $(IDIR_PEERGUARDIAN
) $(PACKAGE_DIR
)