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