diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 17:20:50 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 17:20:50 +0100 |
| commit | d95e8ce75cc193181fd8cf9272269fbfff911f66 (patch) | |
| tree | f25e86b4768050d39b932bfb9e42970cfc5936e4 /deployments | |
| parent | 03f9f907ed21a9c56b229668b28571969d988a8c (diff) | |
Simplify project structure
Diffstat (limited to 'deployments')
| -rw-r--r-- | deployments/archlinux/PKGBUILD | 28 | ||||
| -rw-r--r-- | deployments/docker/Dockerfile | 13 | ||||
| -rw-r--r-- | deployments/systemd/fwdsms.service | 13 |
3 files changed, 0 insertions, 54 deletions
diff --git a/deployments/archlinux/PKGBUILD b/deployments/archlinux/PKGBUILD deleted file mode 100644 index 3dd3279..0000000 --- a/deployments/archlinux/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org> -# SPDX-License-Identifier: ISC - -# Maintainer: Grégoire Duchêne <gduchene@awhk.org> - -pkgname=fwdsms -pkgver=0.2.1 -pkgrel=1 -arch=(x86_64) -url=https://github.com/gduchene/fwdsms -license=(custom:ISC) -backup=(etc/${pkgname}.yaml) -makedepends=(go) -source=(git://github.com/gduchene/fwdsms.git#tag=v${pkgver}) -sha256sums=(SKIP) - -build() { - cd ${pkgname} - go build ./cmd/${pkgname} -} - -package() { - cd ${pkgname} - install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} - install -Dm644 configs/example.yaml ${pkgdir}/etc/${pkgname}.yaml - install -Dm644 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service - install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE -} diff --git a/deployments/docker/Dockerfile b/deployments/docker/Dockerfile deleted file mode 100644 index 6a04a6c..0000000 --- a/deployments/docker/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org> -# SPDX-License-Identifier: ISC - -FROM golang:1.16 -WORKDIR /root -COPY . ./ -RUN CGO_ENABLED=0 go build ./cmd/fwdsms - -FROM scratch -COPY --from=0 /root/fwdsms /usr/bin/fwdsms - -EXPOSE 8080 -ENTRYPOINT ["/usr/bin/fwdsms"] diff --git a/deployments/systemd/fwdsms.service b/deployments/systemd/fwdsms.service deleted file mode 100644 index a095805..0000000 --- a/deployments/systemd/fwdsms.service +++ /dev/null @@ -1,13 +0,0 @@ -# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org> -# SPDX-License-Identifier: ISC - -[Unit] -Description=SMS-to-email Forwarder - -[Service] -ExecStart=fwdsms -DynamicUser=true -RuntimeDirectory=fwdsms - -[Install] -WantedBy=multi-user.target |
