3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3b27365772d918050b2251d98a9c7c82
10 PKG_SOURCE_URL
:=ftp
://ftp.mamalinux.com
/pub
/atftp
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
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
,ATFTP
,atftp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,ATFTPD
,atftpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
51 $(PKG_BUILD_DIR
)/.built
:
52 rm -rf
$(PKG_INSTALL_DIR
)
53 mkdir
-p
$(PKG_INSTALL_DIR
)
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 $(TARGET_CONFIGURE_OPTS
) \
56 CFLAGS
="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
57 DESTDIR
=$(PKG_INSTALL_DIR
) \
62 install -d
-m0755
$(IDIR_ATFTP
)/usr
/bin
63 cp
-fpR
$(PKG_BUILD_DIR
)/atftp
$(IDIR_ATFTP
)/usr
/bin
64 $(RSTRIP
) $(IDIR_ATFTP
)
65 $(IPKG_BUILD
) $(IDIR_ATFTP
) $(PACKAGE_DIR
)
68 install -d
-m0755
$(IDIR_ATFTPD
)/usr
/sbin
69 cp
-fpR
$(PKG_BUILD_DIR
)/atftpd
$(IDIR_ATFTPD
)/usr
/sbin
70 $(RSTRIP
) $(IDIR_ATFTPD
)
71 $(IPKG_BUILD
) $(IDIR_ATFTPD
) $(PACKAGE_DIR
)