source: freewrt/package/srelay/Makefile

freewrt_2_0
Last change on this file was b1bc4e2a, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix all remaining init scripts, normalize

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1029 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 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:= srelay
10PKG_VERSION:= 0.4.6
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 4a9f3298b38d8588f0ffde31b946a47f
13PKG_INIT:= 60
14
15PKG_SOURCE_URL:= @SF/socks-relay
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,SRELAY,srelay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 --disable-thread \
44 --disable-nls \
45 );
46 touch $@
47
48$(WRKBUILD)/.built:
49 rm -rf $(WRKINST)
50 mkdir -p $(WRKINST)
51 $(MAKE) -C $(WRKBUILD) \
52 CC=$(TARGET_CC) \
53 all
54 $(CP) $(WRKBUILD)/srelay $(WRKINST)
55 touch $@
56
57$(IPKG_SRELAY):
58 $(INSTALL_DIR) $(IDIR_SRELAY)/usr/bin
59 $(INSTALL_DIR) $(IDIR_SRELAY)/etc/init.d
60 $(INSTALL_BIN) $(WRKINST)/srelay $(IDIR_SRELAY)/usr/bin/
61 $(INSTALL_BIN) ./files/srelay.init \
62 $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT)srelay
63 $(INSTALL_DATA) ./files/srelay.conf $(IDIR_SRELAY)/etc
64 $(RSTRIP) $(IDIR_SRELAY)
65 $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.