source: freewrt/package/watchdog/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

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

  • Property mode set to 100644
File size: 2.1 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:= watchdog
10PKG_VERSION:= 5.2.4
11PKG_RELEASE:= 2
12PKG_MD5SUM:= c6ac132d92110eb2c4670d4f684105c3
13PKG_INIT:= 15
14
15PKG_SOURCE_URL:= http://ftp.debian.org/debian/pool/main/w/watchdog
16PKG_SOURCE:= $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17
18WRKSRC= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION).orig
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,WATCHDOG,watchdog,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD); rm -rf config.cache; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
29 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 --disable-nls \
49 );
50 touch $@
51
52$(WRKBUILD)/.built:
53 rm -rf $(WRKINST)
54 mkdir -p $(WRKINST)
55 $(MAKE) -C $(WRKBUILD) \
56 CCOPT="$(TARGET_CFLAGS)" \
57 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
58 LIBS="-L$(STAGING_DIR)/usr/lib" \
59 DESTDIR="$(WRKINST)" \
60 all install
61 touch $@
62
63$(IPKG_WATCHDOG):
64 install -d -m0755 $(IDIR_WATCHDOG)/etc
65 $(CP) $(WRKINST)/etc/watchdog.conf $(IDIR_WATCHDOG)/etc/
66 install -d -m0755 $(IDIR_WATCHDOG)/etc/init.d
67 install -m0755 ./files/watchdog.init \
68 $(IDIR_WATCHDOG)/etc/init.d/S$(PKG_INIT)watchdog
69 install -d -m0755 $(IDIR_WATCHDOG)/usr/sbin
70 $(CP) $(WRKINST)/usr/sbin/watchdog $(IDIR_WATCHDOG)/usr/sbin/
71 $(CP) $(WRKINST)/usr/sbin/wd_keepalive $(IDIR_WATCHDOG)/usr/sbin/
72 $(RSTRIP) $(IDIR_WATCHDOG)
73 $(IPKG_BUILD) $(IDIR_WATCHDOG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.