Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Jun 20, 2024
1 parent d615016 commit e8bc507
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 33 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Release: June 20, 2024

### secretserviced v0.2.3

- Dependency update
- Added provides=("org.freedesktop.secrets") to PKGBUILD

## Release: February 12, 2022

### secretserviced v0.2.2
Expand Down
2 changes: 1 addition & 1 deletion build/archlinux/PKGBUILD-v0.2.2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Remisa Yousefvand <[email protected]>

pkgname=secret-service
pkgver=0.2.2
pkgver=VERSION_PLACEHOLDER
pkgrel=1
pkgdesc="secret service provides secure ways of storing credentials"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
Expand Down
56 changes: 56 additions & 0 deletions build/archlinux/PKGBUILD-v0.2.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Maintainer: Remisa Yousefvand <[email protected]>

pkgname=secret-service
pkgver=VERSION_PLACEHOLDER
pkgrel=1
pkgdesc="secret service provides secure ways of storing credentials"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/yousefvand/secret-service"
license=('MIT')
makedepends=('git' 'go')
optdepends=('sudo')
provides=("org.freedesktop.secrets")
source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz")
sha256sums=('57519d26b0be943bff6dbce2218b56314cad3b92d544194c01532e14555ae565')

prepare() {
export GOPATH="$srcdir"/gopath
# go clean -modcache
}

build() {
cd "$pkgname-$pkgver"
go build -o secretserviced cmd/app/secretserviced/main.go
go build -o secretservice cmd/app/secretservice/main.go
}

package() {
cd "$pkgname-$pkgver"
install -Dm755 secretserviced "$pkgdir/usr/local/bin/secretserviced"
install -Dm755 secretservice "$pkgdir/usr/local/bin/secretservice"
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/"${pkgname}"/LICENSE

if [ ! -f "$pkgdir/etc/systemd/user/secretserviced.service" ]; then

password=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '')
cat >secretserviced.service <<EOF
[Unit]
Description=Service to keep secrets of applications
Documentation=https://github.com/yousefvand/secret-service

[Install]
WantedBy=default.target

[Service]
Type=simple
RestartSec=30
Restart=always
Environment="MASTERPASSWORD=$password"
WorkingDirectory=%h
ExecStart=/usr/local/bin/secretserviced
EOF

install -Dm755 secretserviced.service "$pkgdir/etc/systemd/user/secretserviced.service"

fi
}
53 changes: 30 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,43 @@ module github.com/yousefvand/secret-service
go 1.17

require (
github.com/BurntSushi/toml v1.0.0 // indirect
github.com/godbus/dbus/v5 v5.0.6
github.com/google/uuid v1.3.0
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/godbus/dbus/v5 v5.1.0
github.com/google/uuid v1.6.0
github.com/monnand/dhkx v0.0.0-20180522003156-9e5b033f1ac4
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.3.0
github.com/spf13/viper v1.10.1
github.com/stretchr/testify v1.7.0 // indirect
golang.org/x/crypto v0.0.0-20220210151621-f4118a5b28e2
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0 // indirect
golang.org/x/crypto v0.24.0
golang.org/x/sys v0.21.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.8.1 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/text v0.16.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
)
Loading

0 comments on commit e8bc507

Please sign in to comment.