fix #2 - Add a pkg++ configuration example file into chroot

master
Olivier DOSSMANN 2018-08-04 17:37:11 +02:00
parent 1bd33896a3
commit b37e66b399
3 changed files with 11 additions and 10 deletions

10
build
View File

@ -24,14 +24,4 @@ git clone https://github.com/lukc/pkgxx && \
cd .. && \
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

View File

@ -36,6 +36,10 @@ fi
# 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"
# Insert pkg++ configuration in chroot
sudo mkdir -p /opt/pkgxx/dev && \
sudo cp "pkgxx.conf.example" "$DIR/etc/pkgxx.conf" || exit 1
# Launch chroot
sh $DIR/enter-chroot ./build

View File

@ -0,0 +1,7 @@
distribution = "Alpine"
package-manager = "apk"
repository-manager = "apk"
builder = "Contributor Dev Team"
packages-directory = "/opt/pkgxx/test"