aboutsummaryrefslogtreecommitdiff
path: root/sysutils/amtc/files
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-10-17 20:35:26 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-10-17 20:35:26 +0000
commitd53990bd73f1f03b15cc8bbf4ab97969a3517a3c (patch)
tree1dc63f7918ab14e5d4555480ddcb710ba572e135 /sysutils/amtc/files
parent154dcf45c2f91cde9d05b76e38e06ecbf315ee5c (diff)
downloadports-d53990bd73f1f03b15cc8bbf4ab97969a3517a3c.tar.gz
ports-d53990bd73f1f03b15cc8bbf4ab97969a3517a3c.zip
Notes
Diffstat (limited to 'sysutils/amtc/files')
-rw-r--r--sysutils/amtc/files/patch-Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/amtc/files/patch-Makefile b/sysutils/amtc/files/patch-Makefile
new file mode 100644
index 000000000000..319b60bf9f4f
--- /dev/null
+++ b/sysutils/amtc/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig 2015-05-04 22:53:09 UTC
++++ Makefile
+@@ -4,8 +4,8 @@
+ #
+ # Makefile for amtc
+
+-LDLIBS=-lcurl -lpthread
+-CFLAGS=-I. -Wall
++LDLIBS=-L/usr/local/lib -lcurl -lpthread
++CFLAGS=-I/usr/local/include -I. -Wall
+ AMTCV=$(shell cat ../version)
+ APP=amtc-$(AMTCV)
+ OS=$(shell uname -s)
+@@ -18,6 +18,8 @@ HEADERS=amtc_usage cmd_powerdown cmd_pow
+ wsman_ping_enable wsman_ping_disable \
+ wsman_shutdown_graceful
+
++all: amtc
++
+ amtc: amtc.c
+
+ amtc.c: amt.h
+@@ -34,3 +36,8 @@ amt.h:
+ clean:
+ rm -f cmd_*.h wsman_*.h amtc_usage.h amt.h amtc *.o
+
++install:
++ mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/www
++ $(INSTALL) -c amtc $(DESTDIR)$(PREFIX)/bin
++ /bin/cp -R ../amtc-web $(DESTDIR)$(PREFIX)/www
++