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 DESTDIR
=$(PKG_INSTALL_DIR
) \
61 install -d
-m0755
$(IDIR_ATFTP
)/usr
/bin
62 cp
-fpR
$(PKG_BUILD_DIR
)/atftp
$(IDIR_ATFTP
)/usr
/bin
63 $(RSTRIP
) $(IDIR_ATFTP
)
64 $(IPKG_BUILD
) $(IDIR_ATFTP
) $(PACKAGE_DIR
)
67 install -d
-m0755
$(IDIR_ATFTPD
)/usr
/sbin
68 cp
-fpR
$(PKG_BUILD_DIR
)/atftpd
$(IDIR_ATFTPD
)/usr
/sbin
69 $(RSTRIP
) $(IDIR_ATFTPD
)
70 $(IPKG_BUILD
) $(IDIR_ATFTPD
) $(PACKAGE_DIR
)