This commit is contained in:
Mario Fetka 2024-04-16 18:33:36 +02:00
parent 26b87d0069
commit eb461ac7fc
9 changed files with 142 additions and 90 deletions

View File

@ -0,0 +1,8 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-group
ACCT_GROUP_ID=61124

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

View File

@ -1,24 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="The worlds most-loved password manager CLI"
HOMEPAGE="https://1password.com"
SRC_URI="amd64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_amd64_v${PV}.zip )"
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
RESTRICT="mirror strip test bindist"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S=${WORKDIR}
src_install() {
dobin op
}

View File

@ -0,0 +1,36 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="The worlds most-loved password manager CLI"
HOMEPAGE="https://1password.com"
SRC_URI="
amd64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_amd64_v${PV}.zip )
arm64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_arm64_v${PV}.zip )
"
S=${WORKDIR}
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 arm64"
RESTRICT="strip test bindist"
RDEPEND="${DEPEND}
acct-group/onepassword-cli
"
BDEPEND="
app-arch/unzip
acct-group/onepassword-cli
"
src_install() {
chgrp onepassword-cli op
dobin op
}
pkg_postinst() {
chmod g+s /usr/bin/op
}

View File

@ -1,63 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit rpm xdg-utils
DESCRIPTION="The worlds most-loved password manager"
HOMEPAGE="https://1password.com"
SRC_URI="amd64? ( https://downloads.1password.com/linux/rpm/stable/x86_64/${P}.x86_64.rpm -> ${P}.x86_64.rpm )"
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
RESTRICT="mirror strip test bindist"
IUSE="policykit cli"
DEPEND="
x11-misc/xdg-utils
acct-group/onepassword
policykit? ( sys-auth/polkit )
cli? ( app-misc/1password-cli )
"
RDEPEND="${DEPEND}"
BDEPEND=""
S=${WORKDIR}
src_prepare() {
default
xdg_environment_reset
}
src_unpack() {
rpm_unpack ${P}.x86_64.rpm
}
src_install() {
cp -ar "${S}/opt" "${D}" || die "Install failed!"
cp -ar "${S}/usr" "${D}" || die "Install failed!"
chgrp onepassword ${D}/opt/1Password/1Password-BrowserSupport
dosym /opt/1Password/1password /usr/bin/1password
}
pkg_postinst() {
chmod 4755 /opt/1Password/chrome-sandbox
chmod 6755 /opt/1Password/1Password-KeyringHelper
chmod 2755 /opt/1Password/1Password-BrowserSupport
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View File

@ -0,0 +1,79 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg-utils
DESCRIPTION="The world's most-loved password manager"
HOMEPAGE="https://1password.com"
SRC_URI="
amd64? ( https://downloads.1password.com/linux/tar/stable/x86_64/"${PN}"-"${PV}".x64.tar.gz -> "${P}"-amd64.tar.gz )
arm64? ( https://downloads.1password.com/linux/tar/stable/aarch64/"${PN}"-"${PV}".arm64.tar.gz -> "${P}"-arm64.tar.gz )
"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 arm64"
IUSE="policykit cli"
RESTRICT="mirror strip test bindist"
DEPEND="
x11-misc/xdg-utils
acct-group/onepassword
policykit? ( sys-auth/polkit )
cli? ( app-misc/1password-cli )
"
RDEPEND="${DEPEND}"
src_prepare() {
default
xdg_environment_reset
}
src_unpack() {
if [ "${A}" != "" ]; then
unpack ${A}
fi
mv * "${P}" || die "Unpack failed!"
}
src_install() {
mkdir -p "${D}"/opt/1Password
cp -ar "${S}"/* "${D}/opt/1Password/" || die "Install failed!"
mkdir -p "${D}"/usr/share/polkit-1/actions/
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 "${D}"/opt/1Password/com.1password.1Password.policy.tpl)
EOF" > "${D}"/usr/share/polkit-1/actions/com.1password.1Password.policy
dosym /opt/1Password/1password /usr/bin/1password
dosym /opt/1Password/op-ssh-sign /usr/bin/op-ssh-sign
mkdir -p "${D}"/usr/share
mv "${D}"/opt/1Password/resources/icons/ "${D}"/usr/share/
domenu "${S}"/resources/1password.desktop
mkdir -p "${D}"/etc/1password
mv "${D}"/opt/1Password/resources/custom_allowed_browsers "${D}"/etc/1password/
}
pkg_postinst() {
chmod 4755 /opt/1Password/chrome-sandbox
chgrp onepassword /opt/1Password/1Password-BrowserSupport
chmod g+s /opt/1Password/1Password-BrowserSupport
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View File

@ -0,0 +1,16 @@
diff -uNr ncpfs-2.2.6.orig/util/Makefile.in ncpfs-2.2.6/util/Makefile.in
--- ncpfs-2.2.6.orig/util/Makefile.in 2024-03-13 12:31:48.678293599 +0100
+++ ncpfs-2.2.6/util/Makefile.in 2024-03-13 12:32:30.875465894 +0100
@@ -70,9 +70,9 @@
${INSTALL} $(SBINUTILS) $(DESTDIR)$(sbindir)
endif
ifeq ($(USE_KERNEL)$(MOUNT2),11)
-ifneq ($(sbindir),/sbin)
- ln -sf ..$(sbindir)/nwmsg $(DESTDIR)/sbin/nwmsg
-endif
+#ifneq ($(sbindir),/sbin)
+# ln -sf ..$(sbindir)/nwmsg $(DESTDIR)/sbin/nwmsg
+#endif
endif
install-dev:

View File

@ -1,2 +1,2 @@
DIST teams-for-linux_1.4.26_amd64.deb 73806660 BLAKE2B e450378aaa5f504a69a41951e8532246b45f7b5df8f78cf85488bc986c693a78dc85bdd9aa34e81384d6a9fae6dc6159d78e04bc1d03cf4dd82b088fb94b7ba1 SHA512 780befa12eecb3bf4b8159bf59a829ebd50726bdb05df8827b91068c41044f9c9b4dcec856b2044a9c0cf9444d7fc96616d6fc65ee8457aab96adfbfa7eada81
EBUILD teams-for-linux-1.4.26.ebuild 3387 BLAKE2B 0e9031d17f3f3cab3fa8de3570c17fba700d66e35dd4d99df9054a3e7a2482d57e54c47a1d6ab08122d1fed7316a38802b28774d97d8ccebd11bbbb823d68b3f SHA512 f4a873cb21f097675309cf106edd2ff4b08dce10051cd71f5b5b4c0941bcf627b58de2983d5f59f7186cbd25d923a2ab4994f9526f2ccfd5240d9fe93f1ee462
DIST teams-for-linux_1.4.27_amd64.deb 73784484 BLAKE2B c7c44a5d06841b8bbebc5553f0beb5a4acf1f108a08e45e76a764fe83bdd767c0f4fa4e898c779b8d012a66b77890b1e96985a84b0d82dad29f296ae6175a590 SHA512 5faf4da69c57e060539d0a552f78b11461e8f577cd4b5b3c4e22d6ce7d6b7cc3e0c4e87f5d513a1b64c41112bb1607069472b77e0a5e6740558bba4b556ae4de
EBUILD teams-for-linux-1.4.27.ebuild 3387 BLAKE2B 0e9031d17f3f3cab3fa8de3570c17fba700d66e35dd4d99df9054a3e7a2482d57e54c47a1d6ab08122d1fed7316a38802b28774d97d8ccebd11bbbb823d68b3f SHA512 f4a873cb21f097675309cf106edd2ff4b08dce10051cd71f5b5b4c0941bcf627b58de2983d5f59f7186cbd25d923a2ab4994f9526f2ccfd5240d9fe93f1ee462