1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/pglogd/files/patch-Makefile
Pav Lucistnik e784a33567 - Update to 2.3
PR:		ports/63241
Submitted by:	Dominic Mitchell <dom@happygiraffe.net>
Approved by:	maintainer timeout (3 months)
2004-05-26 17:43:43 +00:00

45 lines
1.2 KiB
Plaintext

--- Makefile.orig Wed Nov 5 18:41:01 2003
+++ Makefile Sun Feb 22 21:15:50 2004
@@ -31,16 +31,15 @@
#
# Change this to your PostgreSQL install directroy.
-PGDIR = /usr/local/pgsql
+PGDIR = ${PREFIX}
### NO NEED TO EDIT BELOW THIS LINE ###
CC = gcc
-COPTS = -O -Wall
LIBS = -lpq
-CFLAGS = -I${PGDIR}/include
-LDFLAGS = -L${PGDIR}/lib
+CFLAGS+= -I${PGDIR}/include
+LDFLAGS+= -L${PGDIR}/lib
SRCS_LOG = pglogd.c
@@ -51,7 +50,19 @@
all : pglogd pglogctl
pglogd : ${SRCS_LOG} ${HDRS_LOG}
- ${CC} ${COPTS} -o $@ ${CFLAGS} ${LDFLAGS} ${LIBS} ${SRCS_LOG}
+ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} ${LIBS} ${SRCS_LOG}
pglogctl : ${SRCS_LOGCTL}
- ${CC} ${COPTS} -o $@ ${CFLAGS} ${LDFLAGS} ${LIBS} ${SRCS_LOGCTL}
+ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} ${LIBS} ${SRCS_LOGCTL}
+
+PGLOGD_SHARE= ${PREFIX}/share/pglogd
+install :
+ install -m 750 -s -c pglogd ${PREFIX}/bin
+ install -m 750 -s -c pglogctl ${PREFIX}/bin
+ install -m 755 -d ${PREFIX}/share/pglogd
+ install -m 644 -c pglogd_tables.sql ${PGLOGD_SHARE}
+ install -m 644 -c README ${PGLOGD_SHARE}
+ install -m 644 -c CHANGELOG ${PGLOGD_SHARE}
+ install -m 644 -c weblog_daily.sql ${PGLOGD_SHARE}
+ install -m 644 -c queries.txt ${PGLOGD_SHARE}
+ install -m 644 -c pglogd.conf ${PGLOGD_SHARE}