Browse Source

Use /srv/pkgxx instead of /opt/pkgxx

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

4
build

@ -26,7 +26,7 @@ git clone https://github.com/lukc/pkgxx && \
# APK configuration
echo "> Configure APK to use pkg++ as supplementary repository…"
grep -q "^/opt/pkgxx/dev$" /etc/apk/repositories || \
echo "/opt/pkgxx/dev" >> /etc/apk/repositories
grep -q "^/srv/pkgxx/dev$" /etc/apk/repositories || \
echo "/srv/pkgxx/dev" >> /etc/apk/repositories
# FIXME: DL yunoconfig

4
install-and-chroot.sh

@ -42,8 +42,8 @@ sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
sudo cp build $DIR/build && sh $DIR/enter-chroot /build || exit 1
# Insert pkg++ configuration in chroot
sudo mkdir -p "$DIR/opt/pkgxx/dev" && \
sudo mkdir -p "$DIR/opt/pkgxx/src" && \
sudo mkdir -p "$DIR/srv/pkgxx/dev" && \
sudo mkdir -p "$DIR/srv/pkgxx/src" && \
sudo cp "pkgxx.conf.example" "$DIR/etc/pkgxx.conf" || exit 1
exit 0

4
pkgxx.conf.example

@ -1,8 +1,8 @@
with context
.distribution = "Alpine"
.packageManager = "apk"
.packagesDirectory = "/opt/pkgxx/dev"
.sourcesDirectory = "/opt/pkgxx/src"
.packagesDirectory = "/srv/pkgxx/dev"
.sourcesDirectory = "/srv/pkgxx/src"
.repositoryManager = "apk"
.builder = "Contributor Dev Team"
.repositoryDescription = "pkg++ dev repository"

Loading…
Cancel
Save