diff --git a/.gitignore b/.gitignore index c501e0de2..9fb0ff88d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /src/etc/pkg.conf -/src/etc/pkg/repos/origin.conf* +/src/etc/pkg/** /src/etc/ssh/** /src/etc/php.ini /src/lib/** diff --git a/pkg/Makefile b/pkg/Makefile index 41c4796ef..a72aec7c0 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -8,8 +8,13 @@ install: # config.xml factory reset file @cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc @echo "@sample /usr/local/etc/config.xml.sample" + # create needed root direction + @mkdir -p ${DESTDIR}/usr/local/etc/pkg + # available repository configurations + @cp -r ${.CURDIR}/repos ${DESTDIR}/usr/local/etc/pkg/ + @(cd ${.CURDIR}/repos; find * -type f) | \ + xargs -n1 printf "/usr/local/etc/pkg/repos/%s\n" # main package repository configuration - @mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos @cp ${.CURDIR}/origin.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos @echo "@sample /usr/local/etc/pkg/repos/origin.conf.sample" # available fingerprints diff --git a/src/etc/pkg/repos/FreeBSD.conf b/pkg/repos/FreeBSD.conf similarity index 100% rename from src/etc/pkg/repos/FreeBSD.conf rename to pkg/repos/FreeBSD.conf