make the script actually work with debootstrap
authorSadoon Albader <sadoon@soulserv.xyz>
Fri, 25 Aug 2023 15:39:20 +0000 (18:39 +0300)
committerSadoon Albader <sadoon@soulserv.xyz>
Fri, 25 Aug 2023 15:39:20 +0000 (18:39 +0300)
create-deb-repo [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 476daa7..b567b76
@@ -6,8 +6,24 @@ REPODIR=~/.local/src/bookworm-sffs/repo/
 
 cd $REPODIR
 
-# Not implementing secure deb repos yet, need a trusted key for libre-soc
+mkdir debian
+mkdir dists
+
+tee aptftp.conf << EOF
+APT::FTPArchive::Release {
+  Origin "Debian";
+  Label "Debian";
+  Suite "stable";
+  Codename "bookworm";
+  Architectures "ppc64el";
+  Components "main";
+  Description "SFFS Debian packages";
+};
+EOF
 
-apt-ftparchive packages . > Packages
-apt-ftparchive release . > Release
 
+# Not implementing secure deb repos yet, need a trusted key for libre-soc
+
+dpkg-scanpackages . /dev/null | gzip -9c >debian/Packages.gz
+apt-ftparchive generate -c=aptftp.conf aptgenerate.conf
+apt-ftparchive release -c=aptftp.conf dists/bookworm/ >dists/bookworm/Release