3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3aaf9d525da08ae18dd4133de4ff7be3
10 PKG_SOURCE_URL
:=@openwrt
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,FAKEIDENTD
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
:
25 $(TARGET_CC
) -o
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/identd.c
29 install -d
-m0755
$(IDIR_FAKEIDENTD
)/usr
/sbin \
30 $(IDIR_FAKEIDENTD
)/etc
/init.d \
31 $(IDIR_FAKEIDENTD
)/etc
/default
/
32 echo
$(whoami
) > $(IDIR_FAKEIDENTD
)/etc
/default
/$(PKG_NAME
)
33 $(CP
) $(PKG_BUILD_DIR
)/fakeidentd
$(IDIR_FAKEIDENTD
)/usr
/sbin
/
34 $(CP
) .
/files
/$(PKG_NAME
).init
$(IDIR_FAKEIDENTD
)/etc
/init.d
/$(PKG_NAME
)
35 $(RSTRIP
) $(IDIR_FAKEIDENTD
)
36 $(IPKG_BUILD
) $(IDIR_FAKEIDENTD
) $(PACKAGE_DIR
)