diff --git a/wit/Makefile b/wit/Makefile new file mode 100644 index 0000000..27bac7d --- /dev/null +++ b/wit/Makefile @@ -0,0 +1,42 @@ +VERSION=20230129 +BASENAME=wit + +all: clean extract DEBIAN build + cd .. && wit mirrors + +help: + @echo + @echo "make all # to attempt to download, extract and build the .deb package using dpkg" + @echo + +update-keyring: + curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg + +clean: + rm -rf ../files + rm -f ../*.deb + rm -f ../*.tar.xz data.tar.xz + rm -rf DEBIAN + +extract: + cp -r files .. + +# makes the DEBIAN/ directory +DEBIAN: + mkdir -p DEBIAN + + # make the md5sum file + cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums + mv ../md5sums DEBIAN/ + + # make the control there + mkdir -p DEBIAN + cp control DEBIAN/ + # echo Version: ${VERSION} >>DEBIAN/control + + cp postinst DEBIAN + +build: + mv DEBIAN ../files/ + cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb + cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb diff --git a/wit/compat b/wit/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/wit/compat @@ -0,0 +1 @@ +10 diff --git a/wit/control b/wit/control new file mode 100644 index 0000000..4fbd032 --- /dev/null +++ b/wit/control @@ -0,0 +1,8 @@ +Source: wit +Build-Depends: golang +Package: wit +Version: 20230129 +Maintainer: Jeff Carr +Architecture: amd64 +Depends: info +Description: sets up the apt repository for wit diff --git a/wit/files/etc/apt/sources.list.d/wit.list b/wit/files/etc/apt/sources.list.d/wit.list new file mode 100644 index 0000000..a3b9ea2 --- /dev/null +++ b/wit/files/etc/apt/sources.list.d/wit.list @@ -0,0 +1,2 @@ +deb [signed-by=/etc/wit/wit.gpg] http://mirrors.wit.org/wit/ sid main +deb-src [signed-by=/etc/wit/wit.gpg] http://mirrors.wit.org/wit/ sid main diff --git a/wit/files/etc/apt/trusted.gpg.d/wit-archive-keyring.gpg b/wit/files/etc/apt/trusted.gpg.d/wit-archive-keyring.gpg new file mode 100644 index 0000000..35694f3 Binary files /dev/null and b/wit/files/etc/apt/trusted.gpg.d/wit-archive-keyring.gpg differ diff --git a/wit/files/etc/wit/git b/wit/files/etc/wit/git new file mode 100644 index 0000000..8987389 --- /dev/null +++ b/wit/files/etc/wit/git @@ -0,0 +1 @@ +jcarr diff --git a/wit/files/etc/wit/wit.gpg b/wit/files/etc/wit/wit.gpg new file mode 100644 index 0000000..35694f3 Binary files /dev/null and b/wit/files/etc/wit/wit.gpg differ diff --git a/wit/files/etc/wit/wit.key b/wit/files/etc/wit/wit.key new file mode 100644 index 0000000..549b460 --- /dev/null +++ b/wit/files/etc/wit/wit.key @@ -0,0 +1,40 @@ +-----BEGIN PGP ARMORED FILE----- +mQGNBGC6jbgBDACmFK7p+f/hWpNfBJVf0vuq7PP8Pn05qnM1bUU2rlYybXj3nrwU +yd4RjIA8AhEPuyQPMk4S6i0JJa1OLFlaJpQVJdEBHdr0eQsX/kPDE8fTnB7CS1Xw +8CQVwBHpJad0mU8G9j2Si8UHCGp3Xp80KyosZn8/UJJ1nt8vRyDbibs61HfB6EVr +PVlRuzzo9rKeX09Rwza9CJnKAsE269YKd7I1gWLcIQpkR+ICPLi/s/sROZwH12yt +lAH2ZL5L5A2K5zdj54sLglJCCJ4LX0as8VrZTzouZ01chJqv7Iniy5zDJZuvLkDH +MDYN23Nm8KGmu3jodvaQKYb1gHsGFhzfgU6b1UwhwcZ0x2ZD+lcD4XN4axNSdu7c +TC45cFU3gnF1yVxYdvay6ZxR/iPbqtjNTqnCnfAiLOmaaDc+FRrdwOe7/Ry1baZa +hNKVNr0UOA3t/g+n/ZGKnaDWGd4kX6w+rs7ljD0CprFIE+MlJBMbJPbyyPCXNv4P +d08u7NDk7aoN4uMAEQEAAbQoV0lULk9SRyBEZWJpYW4gT3BlblBHUCBLZXkgPHdp +dEB3aXQub3JnPokB1AQTAQoAPhYhBLHu5LUocQz54Yw429qhi+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NUNrTDaX067haekm77yotOAhiAptbf/5+aEIzs6aM +NVbCHvlTy5fnUuuXABEBAAGJAbwEGAEKACYWIQSx7uS1KHEM+eGMONvaoYvtFVw9 +kQUCYLqNuAIbDAUJA8JnAAAKCRDaoYvtFVw9kaqkC/9bWyWhGhtXRLQG7XgQ2NDi +K4AqSeNIUOUPN55HCiT1Bblcv5y4qtswO6dvYVmY4MPkjFqCMGzVyTWeSA8EooT0 +WgZ6yblfAO9HRqi5GPBYMRHgaLMSHrWVb9mTg16U97zahDsN3HnVMweqgsKFQiYg +/UtNlW+nFXg27/qm57P290mTKxL0qTVVZdsuejrGkYlpL4ymBiJaAdx4NGoa+abV +5V7A3J26dkaH5/hdffsxt2Kygb8yZNAxroevlOQRwgSKUrqVFrAh3modLvphvXWI +TOA4rSr2tmNEFtHUlbLzg17qsXvgKPkmcBMRAkOgHJYvEE63F/xhLXQR+3pU2mMh +qbQ0pPh8AEfOHn7retH2EN3zL/qakjP9e5NfsR4/3gEl247vXBplbYu5QxAZgwOu +sgaDzvH3ADfGY6kCQzIe2YYqFjuL8SzOglzcv8oefVTG05AfJIhH210fJdOJTQEc +2TfTK3U9+aQgnsKpizN/VD/E1IwoltuyX0ghU+sHZOg= +=EiX/ +-----END PGP ARMORED FILE----- diff --git a/wit/postinst b/wit/postinst new file mode 100755 index 0000000..82107c9 --- /dev/null +++ b/wit/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +echo +echo "Run: apt update && apt install wit" +echo