forked from miniflux/v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Debian package builder to main repo
- Loading branch information
Showing
10 changed files
with
114 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
miniflux-* | ||
miniflux | ||
*.rpm | ||
*.rpm | ||
*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG BASE_IMAGE_ARCH="amd64" | ||
|
||
FROM ${BASE_IMAGE_ARCH}/golang:buster AS build | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -q && \ | ||
apt-get install -y -qq build-essential devscripts dh-make dh-systemd && \ | ||
mkdir -p /build/debian | ||
|
||
ADD . /src | ||
|
||
CMD ["/src/packaging/debian/build.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
PKG_ARCH=`dpkg --print-architecture` | ||
PKG_DATE=`date -R` | ||
PKG_VERSION=`cd /src && git describe --abbrev=0` | ||
|
||
echo "PKG_VERSION=$PKG_VERSION" | ||
echo "PKG_ARCH=$PKG_ARCH" | ||
echo "PKG_DATE=$PKG_DATE" | ||
|
||
cd /src && \ | ||
make miniflux && \ | ||
mkdir -p /build/debian && \ | ||
cd /build && \ | ||
cp /src/miniflux /build/ && \ | ||
cp /src/miniflux.1 /build/ && \ | ||
cp /src/LICENSE /build/ && \ | ||
cp /src/packaging/miniflux.conf /build/ && \ | ||
cp /src/packaging/systemd/miniflux.service /build/debian/ && \ | ||
cp /src/packaging/debian/compat /build/debian/compat && \ | ||
cp /src/packaging/debian/copyright /build/debian/copyright && \ | ||
cp /src/packaging/debian/miniflux.manpages /build/debian/miniflux.manpages && \ | ||
cp /src/packaging/debian/rules /build/debian/rules && \ | ||
echo "miniflux ($PKG_VERSION) experimental; urgency=low" > /build/debian/changelog && \ | ||
echo " * Miniflux version $PKG_VERSION" >> /build/debian/changelog && \ | ||
echo " -- Frédéric Guillot <[email protected]> $PKG_DATE" >> /build/debian/changelog && \ | ||
sed "s/__PKG_ARCH__/${PKG_ARCH}/g" /src/packaging/debian/control > /build/debian/control && \ | ||
dpkg-buildpackage -us -uc -b && \ | ||
lintian --check --color always ../*.deb && \ | ||
cp ../*.deb /pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Source: miniflux | ||
Maintainer: Frédéric Guillot <[email protected]> | ||
Build-Depends: debhelper (>= 9), dh-systemd | ||
|
||
Package: miniflux | ||
Architecture: __PKG_ARCH__ | ||
Section: web | ||
Priority: optional | ||
Description: Minimalist Feed Reader | ||
Miniflux is a minimalist and opinionated feed reader | ||
Homepage: https://miniflux.app | ||
Depends: ${misc:Depends}, ${shlibs:Depends}, adduser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Files: * | ||
Copyright: 2017-2020 Frédéric Guillot | ||
License: Apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
miniflux.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
case "$1" in | ||
configure) | ||
adduser --system --disabled-password --disabled-login --home /var/empty \ | ||
--no-create-home --quiet --force-badname --group miniflux | ||
;; | ||
esac | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/make -f | ||
|
||
DESTDIR=debian/miniflux | ||
|
||
%: | ||
dh $@ --with=systemd | ||
|
||
override_dh_auto_clean: | ||
override_dh_auto_test: | ||
override_dh_auto_build: | ||
override_dh_auto_install: | ||
mkdir -p $(DESTDIR)/etc | ||
mkdir -p $(DESTDIR)/usr/bin | ||
cp miniflux.conf $(DESTDIR)/etc/miniflux.conf | ||
cp miniflux $(DESTDIR)/usr/bin/miniflux | ||
|
||
override_dh_installinit: | ||
dh_installinit --noscripts |