[packages_10.03.1] collectd: backport r29404
[openwrt/svn-archive/archive.git] / utils / lilo / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lilo
11 PKG_VERSION:=22.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
15 PKG_SOURCE_URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
16 PKG_MD5SUM:=72765f2aafd20e23ecf07ebd22baeec7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/lilo
21 SECTION:=base
22 CATEGORY:=Boot Loaders
23 DEPENDS:=@TARGET_x86
24 TITLE:=lilo
25 URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
26 endef
27
28 define Package/lilo/conffiles
29 /etc/lilo.conf
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 CC="$(HOSTCC) -m32" \
35 alles
36 endef
37
38 define Package/lilo/install
39 $(INSTALL_DIR) $(1)/sbin
40 $(CP) $(PKG_BUILD_DIR)/lilo.static $(1)/sbin/lilo
41 $(INSTALL_DIR) $(1)/etc
42 $(CP) ./files/lilo.conf $(1)/etc/
43 $(CP) ./files/boot.msg $(1)/etc/
44 endef
45
46 $(foreach command, as86 ld86, \
47 $(eval $(call RequireCommand,$(command), \
48 $(PKG_NAME) requires $(command). \
49 )) \
50 )
51
52 $(eval $(call BuildPackage,lilo))
53