Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6507e069a8 |
@@ -226,10 +226,13 @@ jobs:
|
|||||||
-o unitdore .
|
-o unitdore .
|
||||||
|
|
||||||
PKGDIR="unitdore_${PKGVER}_${GOARCH}"
|
PKGDIR="unitdore_${PKGVER}_${GOARCH}"
|
||||||
mkdir -p "${PKGDIR}/DEBIAN"
|
# explicit modes: the runner umask can make mkdir -p create 777 dirs,
|
||||||
mkdir -p "${PKGDIR}/usr/bin"
|
# which dpkg-deb rejects
|
||||||
mkdir -p "${PKGDIR}/usr/share/man/man1"
|
install -d -m755 \
|
||||||
mkdir -p "${PKGDIR}/etc/unitdore"
|
"${PKGDIR}/DEBIAN" \
|
||||||
|
"${PKGDIR}/usr/bin" \
|
||||||
|
"${PKGDIR}/usr/share/man/man1" \
|
||||||
|
"${PKGDIR}/etc/unitdore"
|
||||||
|
|
||||||
install -m755 unitdore "${PKGDIR}/usr/bin/unitdore"
|
install -m755 unitdore "${PKGDIR}/usr/bin/unitdore"
|
||||||
install -m644 docs/unitdore.1 "${PKGDIR}/usr/share/man/man1/unitdore.1"
|
install -m644 docs/unitdore.1 "${PKGDIR}/usr/share/man/man1/unitdore.1"
|
||||||
@@ -237,6 +240,7 @@ jobs:
|
|||||||
sed -e "s/VERSION/${PKGVER}/" \
|
sed -e "s/VERSION/${PKGVER}/" \
|
||||||
-e "s/ARCH/${GOARCH}/" \
|
-e "s/ARCH/${GOARCH}/" \
|
||||||
pkg/debian/control > "${PKGDIR}/DEBIAN/control"
|
pkg/debian/control > "${PKGDIR}/DEBIAN/control"
|
||||||
|
chmod 644 "${PKGDIR}/DEBIAN/control"
|
||||||
|
|
||||||
dpkg-deb --build --root-owner-group "${PKGDIR}"
|
dpkg-deb --build --root-owner-group "${PKGDIR}"
|
||||||
echo "Built ${PKGDIR}.deb"
|
echo "Built ${PKGDIR}.deb"
|
||||||
|
|||||||
Reference in New Issue
Block a user