3 DEFAULT_PREFERENCE
= "-1"
5 ## Laibsch
: The following DEPENDS lines seem broken in light of the fact that
6 ## they have circular dependencies
and depend on stuff that is recommended
7 ## elsewhere. Let's activate them only
after further discussion
8 #RDEPENDS_$
{PN
} = "${PN}-conf kexec-tools ncurses"
9 #RDEPENDS_$
{PN
}_append_poodle
= " kexec-tools"
10 #RDEPENDS_$
{PN
}-conf
= "${PN}"
15 #TAG
= "${@'v' + bb.data.getVar('PV',d,1).replace('.', '-')}"
17 SRC_URI
= "svn://hentges.net/public/altboot/branches/;module=${TAG};rev=${SVN_REV};proto=svn"
19 LDFLAGS
+= "-lncurses -lmenu"
21 S
= "${WORKDIR}/${TAG}/"
24 cat $
{S
}/init.altboot | sed
"s/^VERSION=.*/VERSION=\"${PV}\"/" > $
{S
}/init.altboot_
25 mv $
{S
}/init.altboot_ $
{S
}/init.altboot
29 $
{CC
} $
{CFLAGS
} $
{LDFLAGS
} $
{S
}curses_menu
/altboot_menu.c
-o altboot_menu
34 install
-d $
{D
}/etc
/altboot
-menu
35 install
-d $
{D
}/etc
/altboot
-menu
/Advanced
36 install
-d $
{D
}/etc
/altboot.rc
37 install
-d $
{D
}/usr
/share
/doc
/altboot
38 install
-d $
{D
}/usr
/share
/sounds
40 if test
-d $
{S
}/$
{MACHINE
}
42 install
-m
0644 $
{S
}/$
{MACHINE
}/altboot
*.cfg $
{D
}/etc
44 install
-m
0644 $
{S
}/altboot
*.cfg $
{D
}/etc
47 install
-m
0644 $
{S
}/beep.raw $
{D
}/usr
/share
/sounds
48 install
-m
0644 $
{S
}/altboot.func $
{D
}/etc
49 install
-m
0755 $
{S
}/init.altboot $
{D
}/sbin
50 install
-m
0755 $
{S
}/altboot_menu $
{D
}/sbin
52 install
-m
0755 $
{S
}/altboot
-menu
/*-* $
{D
}/etc
/altboot
-menu
54 install
-m
0755 $
{S
}/altboot
-menu
/Advanced
/*-* $
{D
}/etc
/altboot
-menu
/Advanced
56 install
-m
0755 $
{S
}/altboot.rc
/*.sh $
{D
}/etc
/altboot.rc
57 install
-m
0644 $
{S
}/altboot.rc
/*.txt $
{D
}/etc
/altboot.rc
60 pkg_postinst_$
{PN
}() {
61 update
-alternatives
--install
/sbin
/init init
/sbin
/init.altboot
55
65 update
-alternatives
--remove init
/sbin
/init.altboot
71 PACKAGE_ARCH_$
{PN
} = "all"
72 PACKAGE_ARCH_$
{PN
}-doc
= "all"
73 PACKAGE_ARCH_$
{PN
}-conf
= "${MACHINE}"
74 PACKAGES
= "${PN}-dbg ${PN}-conf ${PN}-doc ${PN}"
76 FILES_$
{PN
}-conf
= "/etc/altboot*.cfg"