5abef9be14
RECOMMENDED is removed. It becomes ABI_DEPENDS. BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo. BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo. BUILDLINK_DEPENDS does not change. IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS which defaults to "yes". Added to obsolete.mk checking for IGNORE_RECOMMENDED. I did not manually go through and fix any aesthetic tab/spacing issues. I have tested the above patch on DragonFly building and packaging subversion and pkglint and their many dependencies. I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I have used IGNORE_RECOMMENDED for a long time). I have been an active user of IGNORE_RECOMMENDED since it was available. As suggested, I removed the documentation sentences suggesting bumping for "security" issues. As discussed on tech-pkg. I will commit to revbump, pkglint, pkg_install, createbuildlink separately. Note that if you use wip, it will fail! I will commit to pkgsrc-wip later (within day).
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2006/04/06 06:22:42 reed Exp $
|
|
#
|
|
|
|
DISTNAME= ${PKGNAME}-src
|
|
PKGNAME= hydra-5.2
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.thc.org/releases/
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
HOMEPAGE= http://www.thc.org/thc-hydra/
|
|
COMMENT= Login password cracker
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
USE_TOOLS+= pkg-config
|
|
GNU_CONFIGURE= YES
|
|
BUILD_TARGET= all
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
LICENSE+= hydra-license
|
|
|
|
SUBST_CLASSES+= build
|
|
SUBST_STAGE.build= post-patch
|
|
SUBST_FILES.build= Makefile.am configure hydra-gtk/src/main.c
|
|
SUBST_SED.build= -e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g" \
|
|
-e "s|@PREFIX@|${PREFIX}|g" \
|
|
-e "s|uname|${UNAME}|g" \
|
|
-e "s|\\./hydra|${PREFIX}/bin/hydra|g" \
|
|
-e "s|LIBS=-lm|LIBS=-lm ${COMPILER_RPATH_FLAG}${PREFIX}/lib ${COMPILER_RPATH_FLAG}/usr/lib|g"
|
|
SUBST_MESSAGE.build= Patching build files.
|
|
|
|
USE_OLD_DES_API= YES
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
|
BUILDLINK_API_DEPENDS.libssh+= libssh-0.11
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.hydra
|
|
PKG_SUPPORTED_OPTIONS= gtkfe
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtkfe)
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
post-configure:
|
|
cd ${WRKSRC}/hydra-gtk && \
|
|
${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/hydra-gtk && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.xhydra
|
|
.endif
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../security/libssh/buildlink3.mk"
|
|
|
|
pre-build:
|
|
@${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${PREFIX}/bin
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|