]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/core/upstart/upstart.nm
8e64914a54416f9f2555bf2082c280b078b301e5
[people/ms/ipfire-3.x.git] / pkgs / core / upstart / upstart.nm
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 = upstart
28 PKG_VER = 0.6.7
29 PKG_REL = 0
30
31 PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
32 PKG_GROUP = System/Base
33 PKG_URL = http://upstart.ubuntu.com/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = An event-driven init system.
36
37 PKG_BUILD_DEPS+= autoconf automake coreutils dbus-devel libnih-devel libtool \
38 libudev-devel pkg-config
39 PKG_DEPS += sysvinit
40
41 define PKG_DESCRIPTION
42 Upstart is an event-based replacement for the /sbin/init daemon \
43 which handles starting of tasks and services during boot, \
44 stopping them during shutdown and supervising them while the \
45 system is running.
46 endef
47
48 PKG_TARBALL = $(THISAPP).tar.gz
49
50 CONFIGURE_OPTIONS += \
51 --sbindir=/sbin \
52 --sysconfdir=/etc \
53 --libdir=/lib
54
55 define STAGE_PREPARE_CMDS
56 cd $(DIR_APP) && libtoolize
57 cd $(DIR_APP) && autoreconf --force
58 endef
59
60 # Testsuite fails
61 #define STAGE_TEST
62 # cd $(DIR_APP) && make check
63 #endef
64
65 define STAGE_INSTALL_CMDS
66 # These binaries are for the compatiblity mode, so we don´t need them
67 rm -vf $(BUILDROOT)/sbin/poweroff
68 rm -vf $(BUILDROOT)/sbin/runlevel
69 rm -vf $(BUILDROOT)/sbin/shutdown
70 rm -vf $(BUILDROOT)/sbin/telinit
71
72 # These config files are for the compatiblity mode, so we don´t need them
73 rm -vf $(BUILDROOT)/etc/init/control-alt-delete.conf
74 rm -vf $(BUILDROOT)/etc/init/rc-sysinit.conf
75 rm -vf $(BUILDROOT)/etc/init/rc.conf
76 rm -vf $(BUILDROOT)/etc/init/rcS.conf
77 endef
78