diff --git a/README.md b/README.md index 12d9a74..ee9c44a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ __Warning! This software is still under development and is not intended for stab - [x] finish add feature - [x] create del feature - [ ] multiple repositories feature +- [ ] multiple archs feature - [ ] signing repositories using GPG - [ ] make simple way to edit repository info in release file @@ -37,6 +38,8 @@ OPTIONS: add deb package to repository del, -d, --del delete deb package from repository + list, -l, --list + list deb packages serve, -s, --serve serve repository using python built in http module help, -h, --help diff --git a/debrepo b/debrepo index 06938a8..35d6bd0 100755 --- a/debrepo +++ b/debrepo @@ -54,6 +54,8 @@ OPTIONS: add deb package to repository del, -d, --del delete deb package from repository + list, -l, --list + list deb packages serve, -s, --serve serve repository using python built in http module help, -h, --help diff --git a/scripts/genPkgRel.sh b/scripts/genPkgRel.sh index 59ec7ed..4d9314c 100755 --- a/scripts/genPkgRel.sh +++ b/scripts/genPkgRel.sh @@ -3,6 +3,8 @@ DIR="$(cd "$(dirname "$0")" && pwd)" # generate Packages file dpkg-scanpackages --multiversion --arch amd64 "./apt-repo/pool/" > "./apt-repo/dists/stable/main/binary-amd64/Packages" +# compress Packages file +cat "./apt-repo/dists/stable/main/binary-amd64/Packages" | gzip -9 > "./apt-repo/dists/stable/main/binary-amd64/Packages.gz" # generate Release file cd "./apt-repo/dists/stable/" $DIR/generate-release.sh > "Release" diff --git a/scripts/gpgSign.sh b/scripts/gpgSign.sh new file mode 100644 index 0000000..409aadd --- /dev/null +++ b/scripts/gpgSign.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# This is INSECURE! +cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs > ~/tmprepo/apt-repo/dists/stable/Release.gpg +cat ~/tmprepo/apt-repo/dists/stable/Release | gpg --default-key example -abs --clearsign > ~/tmprepo/apt-repo/dists/stable/InRelease +