source: freewrt/package/portmap/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= portmap
10PKG_VERSION:= 5beta
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 781e16ed4487c4caa082c6fef09ead4f
13
14PKG_SOURCE_URL:= ftp://ftp.porcupine.org/pub/security
15PKG_SOURCE:= $(PKG_NAME)_$(PKG_VERSION).tar.gz
16
17WRKSRC= ${WRKDIR}/$(PKG_NAME)_$(PKG_VERSION)
18
19include $(TOPDIR)/mk/package.mk
20
21$(eval $(call PKG_template,PORTMAP,portmap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 touch $@
25
26$(WRKBUILD)/.built:
27 $(MAKE) -C $(WRKBUILD) \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
30 WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
31 all
32 touch $@
33
34$(IPKG_PORTMAP):
35 install -d -m0755 $(IDIR_PORTMAP)/etc/init.d
36 install -m0755 ./files/portmap.init $(IDIR_PORTMAP)/etc/init.d/portmap
37 ln -sf portmap $(IDIR_PORTMAP)/etc/init.d/S59portmap
38 install -d -m0755 $(IDIR_PORTMAP)/usr/sbin
39 install -m0755 $(WRKBUILD)/portmap $(IDIR_PORTMAP)/usr/sbin/
40 $(RSTRIP) $(IDIR_PORTMAP)
41 $(IPKG_BUILD) $(IDIR_PORTMAP) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.