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