diff options
Diffstat (limited to 'package/portmap/Makefile')
-rw-r--r-- | package/portmap/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/package/portmap/Makefile b/package/portmap/Makefile new file mode 100644 index 000000000..68732581c --- /dev/null +++ b/package/portmap/Makefile @@ -0,0 +1,40 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= portmap +PKG_VERSION:= 6.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff +MASTER_SITES:= http://neil.brown.name/portmap/ +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz +WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION} + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,PORTMAP,portmap,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),) +MAKE_FLAGS+= WRAP_LIB='-L${STAGING_DIR}/usr/lib -lwrap' +else +MAKE_FLAGS+= NO_TCP_WRAPPER=1 +endif +TCPPFLAGS+= -DDAEMON_UID=20 -DDAEMON_GID=20 +BUILD_STYLE:= auto +MAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} \ + CFLAGS='${TCFLAGS}' + +do-install: + ${INSTALL_DIR} ${IDIR_PORTMAP}/etc/init.d + ${INSTALL_DIR} ${IDIR_PORTMAP}/usr/sbin + ${INSTALL_BIN} ./files/portmap.init \ + ${IDIR_PORTMAP}/etc/init.d/portmap + ${INSTALL_BIN} ${WRKBUILD}/portmap ${IDIR_PORTMAP}/usr/sbin/ +ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),) + echo 'Depends: libwrap' >>${IDIR_PORTMAP}/CONTROL/control +endif + +include ${TOPDIR}/mk/pkg-bottom.mk |