rebuild openrc
This commit is contained in:
1 parent
c4cfd7fb09
commit
750f2b71d3
1 file changed
+9
-10
@@ -21,16 +21,8 @@ setup(){
|
|||||||
meson setup build \
|
meson setup build \
|
||||||
-Dzsh-completions=true \
|
-Dzsh-completions=true \
|
||||||
-Dbash-completions=true \
|
-Dbash-completions=true \
|
||||||
-Dpam=true \
|
-Dpam=false \
|
||||||
-Dsplit-usr=false \
|
-Dpkgconfig=true
|
||||||
-Dpkgconfig=true \
|
|
||||||
-Dselinux="disabled" \
|
|
||||||
--default-library=both \
|
|
||||||
--prefix=/ \
|
|
||||||
--libdir=/usr/lib \
|
|
||||||
--libexecdir=/lib \
|
|
||||||
--bindir=/bin \
|
|
||||||
--sbindir=/sbin
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
@@ -39,7 +31,14 @@ build(){
|
|||||||
|
|
||||||
package(){
|
package(){
|
||||||
ninja -C build install
|
ninja -C build install
|
||||||
|
# install default inittab
|
||||||
|
install support/sysvinit/inittab ${DESTDIR}/etc/inittab
|
||||||
# fix absolute symlink
|
# fix absolute symlink
|
||||||
|
for file in ${DESTDIR}/etc/runlevels/*/* ; do
|
||||||
|
link=$(readlink $file)
|
||||||
|
rm -f $file
|
||||||
|
ln -s ../../..$link $file
|
||||||
|
done
|
||||||
rm ${DESTDIR}//etc/init.d/functions.sh
|
rm ${DESTDIR}//etc/init.d/functions.sh
|
||||||
ln -s ../../lib/rc/sh/functions.sh ${DESTDIR}/etc/init.d/functions.sh
|
ln -s ../../lib/rc/sh/functions.sh ${DESTDIR}/etc/init.d/functions.sh
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user