1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
gatekeeper 2024-07-19 04:22:15 +03:00 committed by Vladimir Druzenko
parent ab38662b61
commit e34f6550a7
3 changed files with 60 additions and 24 deletions

View File

@ -1,18 +1,18 @@
PORTNAME= keepassrpc
PORTVERSION= 1.8.0
PORTVERSION= 2.0.2
DISTVERSIONPREFIX=v
PORTREVISION= 2
CATEGORIES= security
PKGNAMEPREFIX= keepass-plugin-
MAINTAINER= ports@FreeBSD.org
MAINTAINER= tiago.gasiba@gmail.com
COMMENT= KeePass plugin which facilitates the Kee Firefox plugin
WWW= https://www.kee.pm/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= keepass>0:security/keepass
BUILD_DEPENDS= keepass>0:security/keepass \
msbuild:devel/msbuild
LIB_DEPENDS= libgdiplus.so:x11-toolkits/libgdiplus
USES= cpe mono
@ -20,8 +20,8 @@ CPE_VENDOR= kee
USE_GITHUB= yes
GH_ACCOUNT= kee-org
NO_ARCH= yes
DATADIR= ${PREFIX}/share/keepass/Plugins
NO_ARCH= yes
OPTIONS_DEFINE= DEBUG
DEBUG_VARS= config=Debug
@ -29,12 +29,13 @@ DEBUG_VARS_OFF= config=Release
do-build:
(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/xbuild /t:KeePassRPC /p:Configuration=${CONFIG})
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/msbuild /t:KeePassRPC /p:Configuration=${CONFIG})
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/KeePassRPC/bin/${CONFIG} && \
${RM} ./KeePass.exe && \
${RM} ./KeePass.exe.config && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1549286066
SHA256 (kee-org-keepassrpc-v1.8.0_GH0.tar.gz) = aaa91cb93f89c32d92e26fecc379db9b5604db82350f75ec33ec5fe97a0c8686
SIZE (kee-org-keepassrpc-v1.8.0_GH0.tar.gz) = 3986474
TIMESTAMP = 1721341251
SHA256 (kee-org-keepassrpc-v2.0.2_GH0.tar.gz) = 49e009dd20291a11ef53417329d018ef833eaee290c3e7ca0dc38e9900d6d925
SIZE (kee-org-keepassrpc-v2.0.2_GH0.tar.gz) = 3869344

View File

@ -1,18 +1,53 @@
--- KeePassRPC/KeePassRPC.csproj.orig 2017-12-16 23:19:07 UTC
--- KeePassRPC/KeePassRPC.csproj.orig 2024-06-12 18:29:35 UTC
+++ KeePassRPC/KeePassRPC.csproj
@@ -105,7 +105,7 @@
<Reference Include="KeePass, Version=2.1.8.29009, Culture=neutral, PublicKeyToken=7952fc8ece49a093, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<ExecutableExtension>.exe</ExecutableExtension>
- <HintPath>..\..\..\..\Program Files (x86)\KeePass Password Safe 2 DEV\KeePass.exe</HintPath>
+ <HintPath>/usr/local/share/keepass/KeePass.exe</HintPath>
@@ -113,7 +113,7 @@
<Reference Include="System.Xml" />
<Reference Include="KeePass">
<HintPath Condition="'$(OS)' == 'Windows_NT'">$(USERPROFILE)\KeePassDEV\KeePass.exe</HintPath>
- <HintPath Condition="'$(OS)' != 'Windows_NT'">$(home)/keepass-dev/KeePass.exe</HintPath>
+ <HintPath Condition="'$(OS)' != 'Windows_NT'">/usr/local/share/keepass/KeePass.exe</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
@@ -385,4 +385,4 @@
:BuildEventOK
echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK</PostBuildEvent>
</ItemGroup>
<ItemGroup>
@@ -478,38 +478,12 @@
</PropertyGroup>
-</Project>
\ No newline at end of file
+</Project>
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<PostBuildEvent>
- #!/bin/bash
- echo POSTBUILDSTEP for $(ProjectName)
-
- export KPDir="${HOME}/keepass-dev/"
- export KPPDir=${KPDir}Plugins/
- export KPPTempDir="${KPPDir}$(ProjectName)"
-
- # delete the PLGX from any previous ReleasePLGX build
- rm -f "${KPPDir}$(ProjectName).plgx"
- if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
- echo Release plgx deleted
-
- # copy output DLLs to KeePass plugins directory
- cp "$(ProjectName).dll" "${KPPDir}$(ProjectName).dll"
- cp "$(ProjectName).pdb" "${KPPDir}$(ProjectName).pdb"
-
- if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
-
- cp "Jayrock.dll" "${KPPDir}Jayrock.dll"
- cp "Jayrock.Json.dll" "${KPPDir}Jayrock.Json.dll"
- cp "Fleck2.dll" "${KPPDir}Fleck2.dll"
- cp "DomainPublicSuffix.dll" "${KPPDir}DomainPublicSuffix.dll"
-
- if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
-
- echo Debug DLLs copied to plugins directory
-
- echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK</PostBuildEvent>
+ #!/bin/sh
+ echo POSTBUILDSTEP for $(ProjectName): COMPLETED OK</PostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' != 'Windows_NT' AND '$(ConfigurationName)' == 'ReleasePLGX'">
<PostBuildEvent>
- #!/bin/bash
+ #!/usr/local/bin/bash
echo POSTBUILDSTEP for $(ProjectName)
export KPDir="${HOME}/keepass-dev/"