Browse Source

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

master
Olivier DOSSMANN 4 years ago
parent
commit
b37e66b399
  1. 10
      build
  2. 4
      install-and-chroot.sh
  3. 7
      pkgxx.conf.example

10
build

@ -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

4
install-and-chroot.sh

@ -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

7
pkgxx.conf.example

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