]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/dracut/dracut.nm
28753550844aa7c5b3439e370412a18ddb3a3bda
[ipfire-3.x.git] / pkgs / dracut / dracut.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 = dracut
28 PKG_VER = 010
29 PKG_REL = 3
30 PKG_ARCH = noarch
31
32 PKG_MAINTAINER =
33 PKG_GROUPS = System/Boot
34 PKG_URL = http://sourceforge.net/apps/trac/dracut/wiki
35 PKG_LICENSE = GPLv2+
36 PKG_SUMMARY = Initramfs generator using udev.
37
38 PKG_DEPS-dracut += \
39 bash \
40 bzip2 \
41 cpio \
42 coreutils \
43 dmraid \
44 e2fsprogs \
45 eject \
46 gzip \
47 iputils \
48 kbd \
49 less \
50 libselinux \
51 lvm2 \
52 mdadm \
53 sysvinit \
54 udev \
55 util-linux \
56 which
57
58 define PKG_DESCRIPTION
59 dracut is a new, event-driven initramfs infrastructure based around udev.
60 endef
61
62 PKG_TARBALL = $(THISAPP).tar.bz2
63
64 define STAGE_PREPARE_CMDS
65 # Remove all man pages.
66 # XXX requires docbook
67 cd $(DIR_APP) && sed -i Makefile \
68 -e "s/^all:.*/all: \$$(targets)/" \
69 -e "/.*man.*/d"
70 endef
71
72 define STAGE_INSTALL
73 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
74 sbindir=/sbin sysconfdir=/etc mandir=/usr/share/man
75
76 # Install local configuration.
77 -mkdir -pv $(BUILDROOT)/etc/dracut.conf.d
78 cp -vf $(DIR_SOURCE)/ipfire.conf $(BUILDROOT)/etc/dracut.conf.d/ipfire.conf
79 endef
80
81 # Network package
82 PKG_PACKAGES += dracut-network
83
84 PKG_SUMMARY-dracut-network = Network support for the initramdisk.
85 define PKG_DESCRIPTION-dracut-network
86 This package requires everything which is needed to build a generic
87 all purpose initramfs with network support with dracut.
88 endef
89
90 PKG_DEPS-dracut-network = \
91 bridge-utils \
92 dhclient \
93 iproute \
94 nfs-utils
95
96 define PKG_FILES-dracut-network
97 /usr/share/dracut/modules.d/40network
98 /usr/share/dracut/modules.d/95fcoe
99 /usr/share/dracut/modules.d/95iscsi
100 /usr/share/dracut/modules.d/95nbd
101 /usr/share/dracut/modules.d/95nfs
102 /usr/share/dracut/modules.d/45ifcfg
103 /usr/share/dracut/modules.d/95znet
104 endef
105
106 # Utils package
107 PKG_PACKAGES += dracut-utils
108
109 PKG_SUMMARY-dracut-utils = Command line utils for dracut.
110 define PKG_DESCRIPTION-dracut-utils
111 Command line utils for dracut.
112 endef
113
114 define PKG_FILES-dracut-utils
115 /sbin/dracut-*
116 /sbin/*initrd
117 endef