1password: remove package

The template is poorly written, the installed helper applications
apparently don't work with the package's system group, and setgid
helpers for password gatekeepers seem suspicious.
This commit is contained in:
Andrew J. Hesford 2024-01-18 02:19:12 -05:00
parent 010b744b92
commit bc02b072ac
4 changed files with 0 additions and 93 deletions

View file

@ -1,17 +0,0 @@
# INSTALL
case "${ACTION}" in
post)
chmod 4755 opt/1Password/chrome-sandbox
chown :_onepassword opt/1Password/1Password-KeyringHelper
chmod u+s opt/1Password/1Password-KeyringHelper
chmod g+s opt/1Password/1Password-KeyringHelper
chown :_onepassword opt/1Password/1Password-BrowserSupport
chmod g+s opt/1Password/1Password-BrowserSupport
export POLICY_OWNERS
POLICY_OWNERS="$(cut -d: -f1,3 etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')"
eval "cat <<EOF
$(cat opt/1Password/com.1password.1Password.policy.tpl)
EOF" > opt/1Password/com.1password.1Password.policy
install -Dm0644 opt/1Password/com.1password.1Password.policy -t usr/share/polkit-1/actions/
;;
esac

View file

@ -1,2 +0,0 @@
#!/bin/sh
exec /opt/1Password/1password "$@"

View file

@ -1 +0,0 @@
The current version can be found at: https://1password.com/legal/terms-of-service/

View file

@ -1,73 +0,0 @@
# Template file for '1password'
pkgname=1password
version=8.10.23
revision=1
archs="x86_64 aarch64"
hostmakedepends="gnupg"
short_desc="Password manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:Proprietary"
homepage="https://www.1password.com"
case "${XBPS_TARGET_MACHINE}" in
aarch64)
_arch="arm64"
checksum="bc4769aa5197739811f64afe89146f448e2be3c1fa016afeb0366dda4350c41e
8677ef551e2f32c627ca87caeb367e4ec36a4d4b062d1a00fbec9dc6137c9b85"
;;
x86_64)
_arch="x64"
checksum="4ea67d01f7f21e5d6600ac99bc00d51a1e4e5ca6441978ca4a45eaed923fa1b0
9299d821a0b8bc2119220cf1caf002b79c19bbff8b0e9d43da9427205430bb4c"
;;
esac
distfiles="https://downloads.1password.com/linux/tar/stable/${XBPS_TARGET_MACHINE}/1password-${version}.${_arch}.tar.gz
https://downloads.1password.com/linux/tar/stable/${XBPS_TARGET_MACHINE}/1password-${version}.${_arch}.tar.gz.sig"
_filename="1password-${version}.${_arch}.tar.gz"
_1passworddir="${_filename%.tar.*}"
_gpg_key=3FEF9748469ADBE15DA7CA80AC2D62742012EA22
_resources="opt/1Password/resources"
system_groups="_onepassword"
repository=nonfree
restricted=yes
nostrip=yes
noshlibprovides=yes
skip_extraction="$_filename.sig"
post_extract() {
# verify gpg key
if ! gpg --recv-keys "${_gpg_key}"; then
msg_error "Incorrect gpg key: ${_gpg_key}\n"
fi
if ! gpg --verify "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename}.sig" \
"${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename}"
then
msg_error "gpg verify failed\n"
fi
}
do_install() {
vmkdir opt/1Password
vlicense ${FILESDIR}/EULA
vcopy "*" opt/1Password
# Install the icons
for _s in 32 64 256 512; do
# Create xdg directory
vmkdir usr/share/icons/hicolor/${_s}x${_s}/apps
# Copy the 1Password icon
mv ${DESTDIR}/${_resources}/icons/hicolor/${_s}x${_s}/apps/1password.png \
${DESTDIR}/usr/share/icons/hicolor/${_s}x${_s}/apps/1password.png
done
# Install the .desktop file
vmkdir usr/share/applications
mv ${DESTDIR}/${_resources}/1password.desktop \
${DESTDIR}/usr/share/applications/1password.desktop
vinstall resources/custom_allowed_browsers 644 usr/share/doc/1password/examples/
vbin "${FILESDIR}/1password"
}