source: freewrt/package/monit/Makefile

freewrt_2_0
Last change on this file 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.9 KB
RevLine 
[c8b93bd]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.
[475ad56]6
7include $(TOPDIR)/rules.mk
8
[c8b93bd]9PKG_NAME:= monit
10PKG_VERSION:= 4.6
[54848b1]11PKG_RELEASE:= 2
[c8b93bd]12PKG_MD5SUM:= 4e53aa44e4ca264e61c7c401cee4e697
[54848b1]13PKG_INIT:= 50
[475ad56]14
[c8b93bd]15PKG_SOURCE_URL:= http://www.tildeslash.com/monit/dist/
[475ad56]16
[c8b93bd]17include $(TOPDIR)/mk/package.mk
[475ad56]18
19$(eval $(call PKG_template,MONIT,monit,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20$(eval $(call PKG_template,MONIT_NOSSL,monit-nossl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
[d419478]22$(WRKBUILD)/.configured:
[475ad56]23 touch $@
24
[d419478]25$(WRKBUILD)/.built:
[c04ece1]26ifneq ($(FWRT_PACKAGE_MONIT),)
[d419478]27 ( cd $(WRKBUILD); rm -rf config.{cache,status} ; \
[475ad56]28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS)" \
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/sbin \
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 \
[c57fbc9]48 --disable-nls \
[475ad56]49 --with-ssl \
50 --with-ssl-dir="$(STAGING_DIR)/usr" \
51 );
[d419478]52 $(MAKE) -C $(WRKBUILD)
53 ( cd $(WRKBUILD); mv monit monit-ssl; )
[475ad56]54endif
[54848b1]55ifneq ($(FWRT_PACKAGE_MONIT_NOSSL),)
[d419478]56 ( cd $(WRKBUILD); rm -rf config.{cache,status} ; \
[475ad56]57 $(TARGET_CONFIGURE_OPTS) \
58 CFLAGS="$(TARGET_CFLAGS)" \
59 ./configure \
60 --target=$(GNU_TARGET_NAME) \
61 --host=$(GNU_TARGET_NAME) \
62 --build=$(GNU_HOST_NAME) \
63 --program-prefix="" \
64 --program-suffix="" \
65 --prefix=/usr \
66 --exec-prefix=/usr \
67 --bindir=/usr/sbin \
68 --datadir=/usr/share \
69 --includedir=/usr/include \
70 --infodir=/usr/share/info \
71 --libdir=/usr/lib \
72 --libexecdir=/usr/lib \
73 --localstatedir=/var \
74 --mandir=/usr/share/man \
75 --sbindir=/usr/sbin \
76 --sysconfdir=/etc \
[c57fbc9]77 --disable-nls \
[475ad56]78 --without-ssl \
79 );
[d419478]80 $(MAKE) -C $(WRKBUILD)
81 ( cd $(WRKBUILD); mv monit monit-nossl; )
82 $(MAKE) -C $(WRKBUILD) clean
[475ad56]83endif
84 touch $@
85
86$(IPKG_MONIT):
[54848b1]87 $(INSTALL_DIR) $(IDIR_MONIT)/etc/init.d
88 $(INSTALL_DIR) $(IDIR_MONIT)/usr/sbin
[d419478]89 install -m0600 $(WRKBUILD)/monitrc $(IDIR_MONIT)/etc/
[54848b1]90 $(INSTALL_BIN) ./files/monit.init \
91 $(IDIR_MONIT)/etc/init.d/S$(PKG_INIT)monit
92 $(INSTALL_BIN) $(WRKBUILD)/monit-ssl $(IDIR_MONIT)/usr/sbin/monit
[475ad56]93 $(RSTRIP) $(IDIR_MONIT)
94 $(IPKG_BUILD) $(IDIR_MONIT) $(PACKAGE_DIR)
95
96$(IPKG_MONIT_NOSSL):
[54848b1]97 echo $(IDIR_MONIT_NOSSL)
98 $(INSTALL_DIR) $(IDIR_MONIT_NOSSL)/etc/init.d
99 $(INSTALL_DIR) $(IDIR_MONIT_NOSSL)/usr/sbin
[d419478]100 install -m0600 $(WRKBUILD)/monitrc $(IDIR_MONIT_NOSSL)/etc/
[54848b1]101 $(INSTALL_BIN) ./files/monit.init \
102 $(IDIR_MONIT_NOSSL)/etc/init.d/S$(PKG_INIT)monit
103 $(INSTALL_BIN) $(WRKBUILD)/monit-nossl $(IDIR_MONIT_NOSSL)/usr/sbin/monit
[475ad56]104 $(RSTRIP) $(IDIR_MONIT_NOSSL)
105 $(IPKG_BUILD) $(IDIR_MONIT_NOSSL) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.