forked from Lainports/freebsd-ports
Highlights: - New Roslyn compiler for C# available - Improved support for nuget packages in USES=mono General: - fix pkg-plist: mono now produces '.pdb' debug files instead of '.mdb' - bump all dependant ports USES=mono: - properly handle caching of nuget packages - add support for multiple feeds for nuget packages - add support for nuget dependencies in a separate file - add support for paket packages lang/mono: - update to version 5.2.0.215 - automate certificate initialisation [2] - increase test coverage - mark as conflicting with net/czmq (conflicting on makecert) [1] - patch mono to use $PREFIX/share/mono instead of /usr/share/.mono devel/google-gdata: - use nunit.framework nuget package as the Mono shipped version is no longer suppport. - switch to using csc(1) for compiling (mcs(1) is depreciated). - use delayed signing (and then sign with sn(1)) as csc(1) does not support signing. - fix reference to system assemblies (the '.dll' suffix is required). - fix reference to HttpUtility: csc(1) is more strict about scoping devel/monodevelop: - reroll distinfo (no changes to content) lang/fsharp: - reroll distinfo (no changes to content) security/gnome-keyring-sharp: - delay sign (then sign with sn(1)) as csc(1) does not support direct signing. PR: 223188 [1] PR: 209670 [2] Differential Revision: https://reviews.freebsd.org/D13752
72 lines
2.1 KiB
Makefile
72 lines
2.1 KiB
Makefile
# Created by: Ben Woods <woodsb02@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= keepass
|
|
PORTVERSION= 2.37
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/${PORTNAME}/KeePass%202.x/${PORTVERSION}
|
|
DISTNAME= KeePass-${PORTVERSION}-Source
|
|
|
|
MAINTAINER= woodsb02@FreeBSD.org
|
|
COMMENT= Light-weight and easy-to-use password manager
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
BUILD_DEPENDS= icotool:graphics/icoutils
|
|
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
|
|
libgdiplus.so:x11-toolkits/libgdiplus
|
|
|
|
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
USES= cpe dos2unix mono zip
|
|
DOS2UNIX_GLOB= *.csproj *.sln
|
|
INSTALLS_ICONS= yes
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
NO_ARCH= yes
|
|
|
|
DESKTOP_ENTRIES="KeePass" \
|
|
"${COMMENT}" \
|
|
"${PORTNAME}" \
|
|
"keepass.sh" \
|
|
"Utility;" \
|
|
true
|
|
|
|
OPTIONS_DEFINE= DEBUG XDOTOOL XSEL
|
|
XDOTOOL_DESC= Use the xdotool utility for auto-typing passwords
|
|
XSEL_DESC= Use the xsel utility for clipboard copying
|
|
|
|
OPTIONS_DEFAULT= XDOTOOL XSEL
|
|
|
|
DEBUG_VARS= config=Debug
|
|
DEBUG_VARS_OFF= config=Release
|
|
XDOTOOL_RUN_DEPENDS= xdotool:x11/xdotool
|
|
XSEL_RUN_DEPENDS= xsel:x11/xsel-conrad
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|sed\ -i|sed\ -i\ \"\"|g' ${WRKSRC}/Build/PrepMonoDev.sh
|
|
|
|
do-build:
|
|
# Extract icons
|
|
(cd ${WRKSRC} && ${LOCALBASE}/bin/icotool -x KeePass/KeePass.ico)
|
|
# Prepare build
|
|
(cd ${WRKSRC}/Build && ${SH} PrepMonoDev.sh)
|
|
# Do build
|
|
(cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/xbuild /t:KeePass /p:Configuration=${CONFIG})
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/Build/KeePass/${CONFIG}/KeePass.exe ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Ext/KeePass.config.xml ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Ext/KeePass.exe.config ${STAGEDIR}${DATADIR}
|
|
@(cd ${WRKSRC}/Ext && ${COPYTREE_SHARE} XSL ${STAGEDIR}${DATADIR})
|
|
.for size in 16 32 48 256
|
|
@${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}x${size}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/KeePass_*_${size}x${size}x32.png \
|
|
${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}x${size}/apps/keepass.png
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|