90492a7085fcf333600afa6be8c7c70033161163
[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: Makefile 4091 2006-06-27 00:35:46Z mbm $
8 #
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lilo
12 PKG_VERSION:=22.7.2
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
17 PKG_SOURCE_URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
18 PKG_MD5SUM:=
19 PKG_CAT:=zcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lilo
24 SECTION:=base
25 CATEGORY:=Boot Loaders
26 TITLE:=lilo
27 DESCRIPTION:=lilo
28 URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
29 DEPENDS:=@LINUX_2_6_X86||LINUX_2_4_X86
30 endef
31
32
33
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) alles
37 $(STRIP) $(PKG_BUILD_DIR)/lilo.static
38 endef
39
40 define Package/lilo/install
41 mkdir -p $(1)/sbin
42 mkdir -p $(1)/etc/init.d
43 mkdir -p $(1)/boot
44 $(CP) $(PKG_BUILD_DIR)/lilo.static $(1)/sbin/lilo
45 $(CP) lilo.conf $(1)/etc
46 $(CP) boot.msg $(1)/etc
47 #$(CP) S11Pivot $(1)/etc/init.d
48 endef
49
50 $(eval $(call BuildPackage,lilo))