Set version in controlfile dynamically (#18)
If the package is built with a specific version the controlfile should contain the corresponding version.
This commit is contained in:
parent
99ea231d80
commit
054085e860
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
git/
|
git/
|
||||||
dist/
|
dist/
|
||||||
debian/config.env
|
debian/config.env
|
||||||
|
debian/control
|
||||||
Dockerfile
|
Dockerfile
|
||||||
|
5
build.sh
5
build.sh
@ -52,6 +52,11 @@ patch -i "$DIR/Dockerfile.patch" "$SRC/docker/amd64/$DB_TYPE/Dockerfile" -o "$DI
|
|||||||
sed -E "s/(FROM[[:space:]]*rust:)[^[:space:]]+(.+)/\1${OS_VERSION_NAME}\2/g" -i "$DIR/Dockerfile"
|
sed -E "s/(FROM[[:space:]]*rust:)[^[:space:]]+(.+)/\1${OS_VERSION_NAME}\2/g" -i "$DIR/Dockerfile"
|
||||||
sed -E "s/(FROM[[:space:]]*debian:)[^-]+(-.+)/\1${OS_VERSION_NAME}\2/g" -i "$DIR/Dockerfile"
|
sed -E "s/(FROM[[:space:]]*debian:)[^-]+(-.+)/\1${OS_VERSION_NAME}\2/g" -i "$DIR/Dockerfile"
|
||||||
|
|
||||||
|
# Prepare Controlfile
|
||||||
|
CONTROL="$DIR/debian/control"
|
||||||
|
cp "$DIR/control.dist" "$CONTROL"
|
||||||
|
sed -i "s/Version:.*/Version: $REF-1/" "$CONTROL"
|
||||||
|
|
||||||
# Prepare Systemd-unit
|
# Prepare Systemd-unit
|
||||||
SYSTEMD_UNIT="$DIR/debian/bitwarden_rs.service"
|
SYSTEMD_UNIT="$DIR/debian/bitwarden_rs.service"
|
||||||
if [ "$DB_TYPE" = "mysql" ]; then
|
if [ "$DB_TYPE" = "mysql" ]; then
|
||||||
|
@ -2,6 +2,6 @@ Package: bitwarden-rs
|
|||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: Greizgh <greizgh+bitwardenrs@ephax.org>
|
Maintainer: Greizgh <greizgh+bitwardenrs@ephax.org>
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 1.15.1-1
|
Version: -
|
||||||
Description: Unofficial Bitwarden compatible server written in Rust
|
Description: Unofficial Bitwarden compatible server written in Rust
|
||||||
Homepage: https://github.com/greizgh/bitwarden_rs-debian
|
Homepage: https://github.com/greizgh/bitwarden_rs-debian
|
Loading…
Reference in New Issue
Block a user