openbsd-ports/security/hydra/patches/patch-Makefile_am
2009-01-05 22:10:06 +00:00

36 lines
1.5 KiB
Plaintext

$OpenBSD: patch-Makefile_am,v 1.1 2009/01/05 22:10:06 rui Exp $
--- Makefile.am.orig Fri May 5 15:10:44 2006
+++ Makefile.am Sat May 12 21:58:03 2007
@@ -2,7 +2,7 @@
# Makefile for Hydra - (c) 2001-2006 by van Hauser / THC <vh@thc.org>
#
-OPTS=-I. -Wall -O2
+OPTS=-I. $(CFLAGS)
# -ggdb -pedantic
LIBS=-lm
DIR=/bin
@@ -43,7 +43,7 @@ hydra: $(OBJ)
@echo
xhydra:
- -cd hydra-gtk && ./make_xhydra.sh
+ -cd hydra-gtk/src && $(MAKE)
pw-inspector: pw-inspector.c
-$(CC) $(OPTS) -o pw-inspector pw-inspector.c
@@ -56,10 +56,9 @@ strip: hydra
-test -e hydra.exe && strip $(BINWIN) || touch hydra
-test -e xhydra && strip xhydra || touch Makefile
-install: strip
- -test -e hydra.exe && touch Makefile || cp $(BINUNIX) $(PREFIX)$(DIR) && cd $(PREFIX)$(DIR) && chmod 755 $(BINUNIX)
- -test -e hydra.exe && cp $(BINWIN) $(PREFIX)$(DIR) && cd $(PREFIX)$(DIR) && chmod 755 $(BINWIN) || touch Makefile
- -test -e xhydra && cp xhydra $(PREFIX)$(DIR) && cd $(PREFIX)$(DIR) && chmod 755 xhydra
+install:
+ $(BSD_INSTALL_PROGRAM) $(BINUNIX) $(PREFIX)$(DIR) 2> /dev/null
+ cd hydra-gtk/src && $(BSD_INSTALL_PROGRAM) xhydra $(PREFIX)$(DIR) 2> /dev/null
clean:
rm -rf hydra pw-inspector xhydra pw-inspector.exe hydra.exe *.o core *~ Makefile.in Makefile dev_rfc hydra.restore arm/*.ipk arm/ipkg/usr/bin/* hydra-gtk/src/*.o hydra-gtk/src/xhydra hydra-gtk/stamp-h hydra-gtk/config.status hydra-gtk/errors hydra-gtk/config.log hydra-gtk/src/.deps hydra-gtk/src/Makefile hydra-gtk/Makefile