Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 873 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 873 Bytes

DEB build and APT repo

Build package

dpkg-source -x $pkg.dsc
cd $pkg
mk-build-deps --install debian/control
debuild -b -uc -us

Create repo

We create a very basic Debian repo, not using a pool/ directory and Release files with GPG signatures.

ARCH="`dpkg --print-architecture`"

mkdir -p dists/main/local/binary-$ARCH
mkdir -p dists/main/local/source

Move binary packages to binary-$ARCH and sources to source.

dpkg-scanpackages dists/main/local/binary-$ARCH /dev/null \
  | gzip -9 \
  > dists/main/local/binary-$ARCH/Packages.gz

dpkg-scansources dists/main/local/source \
  | gzip -9 \
  > dists/main/local/source/Sources.gz

RPM build and YUM repo

Build package

rpm -i $pgk.srpm
rpmbuild -ba --clean SPECS/$pkg.spec

We skip the step of signing the package for now.

Create repo

createrepo .