]>
Commit | Line | Data |
---|---|---|
164c0d73 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = chrony | |
28 | PKG_VER = 1.26 | |
29 | PKG_REL = 1 | |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUPS = System/Daemons | |
33 | PKG_URL = http://chrony.tuxfamily.org | |
34 | PKG_LICENSE = GPLv2 | |
35 | PKG_SUMMARY = An NTP client/server. | |
36 | ||
37 | PKG_BUILD_DEPS+= bison libcap-devel readline-devel texinfo | |
38 | ||
39 | define PKG_DESCRIPTION | |
40 | A client/server for the Network Time Protocol, this program keeps your | |
41 | computer's clock accurate. It was specially designed to support | |
42 | systems with intermittent internet connections, but it also works well | |
43 | in permanently connected environments. It can use also hardware reference | |
44 | clocks, system real-time clock or manual input as time references. | |
45 | endef | |
46 | ||
47 | PKG_TARBALL = $(THISAPP).tar.gz | |
48 | ||
49 | PKG_PACKAGES += $(PKG_NAME)-devel | |
50 | ||
51 | CONFIGURE_OPTIONS += \ | |
52 | --with-sendmail=/usr/sbin/sendmail | |
53 | ||
54 | STAGE_BUILD_TARGETS += getdate all docs | |
55 | STAGE_INSTALL_TARGETS += install-docs | |
56 | ||
57 | define STAGE_INSTALL_CMDS | |
58 | -mkdir -pv $(BUILDROOT)/var/{lib,log}/chrony | |
59 | touch $(BUILDROOT)/var/lib/chrony/{drift,rtc} | |
60 | ||
61 | -mkdir -pv $(BUILDROOT)/etc | |
62 | install -m 644 -p $(DIR_SOURCE)/chrony.conf $(BUILDROOT)/etc/chrony.conf | |
63 | install -m 640 -p $(DIR_SOURCE)/chrony.keys $(BUILDROOT)/etc/chrony.keys | |
64 | ||
65 | -mkdir -pv $(BUILDROOT)/etc/dhcp/dhclient.d | |
66 | install -m 755 -p $(DIR_SOURCE)/chrony.dhclient \ | |
67 | $(BUILDROOT)/etc/dhcp/dhclient.d/chrony.sh | |
68 | ||
69 | -mkdir -pv $(BUILDROOT)/etc/logrotate.d | |
70 | install -m 644 -p $(DIR_SOURCE)/chrony.logrotate \ | |
71 | $(BUILDROOT)/etc/logrotate.d/chrony | |
72 | ||
73 | -mkdir -pv $(BUILDROOT)/usr/lib/chrony | |
74 | install -m 755 -p $(DIR_SOURCE)/chrony-helper $(BUILDROOT)/usr/lib/chrony-helper | |
75 | endef |