fix #2 - Add a pkg++ configuration example file into chroot
This commit is contained in:
parent
1bd33896a3
commit
b37e66b399
10
build
10
build
@ -24,14 +24,4 @@ git clone https://github.com/lukc/pkgxx && \
|
|||||||
cd .. && \
|
cd .. && \
|
||||||
rm -rf pkgxx || exit 1
|
rm -rf pkgxx || exit 1
|
||||||
|
|
||||||
# Configure pkgxx
|
|
||||||
echo "> Configure pkgxx"
|
|
||||||
mkdir -p /opt/pkgxx/dev && \
|
|
||||||
sed -i -e 's#prefix = .*$#prefix = "/opt/pkgxx/dev"#' \
|
|
||||||
-e 's#distribution = .*$#distribution = "Alpine"#' \
|
|
||||||
-e 's#package-manager = .*$#package-manager = "apk"#' \
|
|
||||||
-e 's#repository-manager = .*$#repository-manager = "apk"#' \
|
|
||||||
-e '/distribution-codename/d' \
|
|
||||||
-e 's#provider = .*$#provider = "Dev Team"#' /etc/pkgxx.conf
|
|
||||||
|
|
||||||
# FIXME: DL yunoconfig
|
# FIXME: DL yunoconfig
|
||||||
|
@ -36,6 +36,10 @@ fi
|
|||||||
# Set rc_sys="prefix" to not disturb systemd on current system
|
# Set rc_sys="prefix" to not disturb systemd on current system
|
||||||
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
|
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
|
||||||
|
|
||||||
|
# Insert pkg++ configuration in chroot
|
||||||
|
sudo mkdir -p /opt/pkgxx/dev && \
|
||||||
|
sudo cp "pkgxx.conf.example" "$DIR/etc/pkgxx.conf" || exit 1
|
||||||
|
|
||||||
# Launch chroot
|
# Launch chroot
|
||||||
sh $DIR/enter-chroot ./build
|
sh $DIR/enter-chroot ./build
|
||||||
|
|
||||||
|
7
pkgxx.conf.example
Normal file
7
pkgxx.conf.example
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
distribution = "Alpine"
|
||||||
|
package-manager = "apk"
|
||||||
|
repository-manager = "apk"
|
||||||
|
|
||||||
|
builder = "Contributor Dev Team"
|
||||||
|
|
||||||
|
packages-directory = "/opt/pkgxx/test"
|
Loading…
Reference in New Issue
Block a user