source: freewrt/package/portmap/Makefile@ 18c227bd

freewrt_2_0
Last change on this file since 18c227bd was 5d9f1ed, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

more init script fixes

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1009 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:= 3
12PKG_MD5SUM:= 781e16ed4487c4caa082c6fef09ead4f
13PKG_INIT:= 60
14
15PKG_SOURCE_URL:= ftp://ftp.porcupine.org/pub/security
16PKG_SOURCE:= $(PKG_NAME)_$(PKG_VERSION).tar.gz
17
18WRKSRC= ${WRKDIR}/$(PKG_NAME)_$(PKG_VERSION)
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,PORTMAP,portmap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 touch $@
26
27$(WRKBUILD)/.built:
28 $(MAKE) -C $(WRKBUILD) \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
31 WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
32 all
33 touch $@
34
35$(IPKG_PORTMAP):
36 install -d -m0755 $(IDIR_PORTMAP)/etc/init.d
37 install -m0755 ./files/portmap.init \
38 $(IDIR_PORTMAP)/etc/init.d/S$(PKG_INIT)portmap
39 install -d -m0755 $(IDIR_PORTMAP)/usr/sbin
40 install -m0755 $(WRKBUILD)/portmap $(IDIR_PORTMAP)/usr/sbin/
41 $(RSTRIP) $(IDIR_PORTMAP)
42 $(IPKG_BUILD) $(IDIR_PORTMAP) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.