1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 5d08da7ebe049c9d9a6472d6afb81aa5af54c4733a3f8822cbc22b57867633c9
10 PKG_DESCR
:= list open files
11 PKG_SECTION
:= sys
/utils
12 PKG_DEPENDS
:= libtirpc
13 PKG_BUILDDEP
:= libtirpc
14 PKG_URL
:= http
://people.freebsd.org
/~abe
/
15 PKG_SITES
:= https
://www.mirrorservice.org
/sites
/lsof.itap.purdue.edu
/pub
/tools
/unix
/lsof
/
17 PKG_LIBC_DEPENDS
:= uclibc-ng glibc
19 DISTFILES
:= ${PKG_NAME}_
${PKG_VERSION}.
tar.gz
20 WRKDIST
= ${WRKDIR}/${PKG_NAME}_
${PKG_VERSION}
21 WRKSRC
= ${WRKDIR}/${PKG_NAME}_
${PKG_VERSION}/${PKG_NAME}_
${PKG_VERSION}_src
23 include $(ADK_TOPDIR
)/mk
/package.mk
25 $(eval
$(call PKG_template
,LSOF
,lsof
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 CONFIG_STYLE
:= minimal
28 CONFIGURE_PROG
:= Configure
29 CONFIGURE_ARGS
:= -n linux
30 XAKE_FLAGS
+= CC
='${TARGET_CC}' CFLAGS
='${TARGET_CFLAGS} -I$(STAGING_TARGET_DIR)/usr/include/tirpc'
31 XAKE_FLAGS
+= CFGL
='${TARGET_LDFLAGS} -L./lib -llsof -ltirpc'
32 INSTALL_STYLE
:= manual
35 (cd
${WRKDIR}/${PKG_NAME}_
${PKG_VERSION}; \
36 tar xf
${PKG_NAME}_
${PKG_VERSION}_src.
tar)
39 $(INSTALL_DIR
) $(IDIR_LSOF
)/usr
/sbin
40 $(INSTALL_BIN
) $(WRKBUILD
)/lsof \
43 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk