mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: switch to USE_RC_SUBR. 3: add pkg-message to SUB_FILES.
This commit is contained in:
parent
975fc8446c
commit
7637130252
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357509
@ -11,18 +11,7 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Sends web server log entries to a PostgreSQL database
|
||||
|
||||
USE_PGSQL= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
post-extract:
|
||||
@${CP} ${FILESDIR}/020.pglogd.sh ${WRKSRC}/020.pglogd.sh
|
||||
@${REINPLACE_CMD} -e "s=%%PREFIX%%=${PREFIX}=g" ${WRKSRC}/020.pglogd.sh
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/020.pglogd.sh ${PREFIX}/etc/rc.d/020.pglogd.sh
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/020.pglogd.sh ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/020.pglogd.sh startup file."; \
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/020.pglogd.sh ${PREFIX}/etc/rc.d/020.pglogd.sh; \
|
||||
fi
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
USE_RC_SUBR= 020.pglogd.sh
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Wed Nov 5 18:41:01 2003
|
||||
+++ Makefile Sun Feb 22 21:15:50 2004
|
||||
--- Makefile.orig 2003-11-06 02:41:01.000000000 +0800
|
||||
+++ Makefile 2014-06-12 00:33:45.474374245 +0800
|
||||
@@ -31,16 +31,15 @@
|
||||
#
|
||||
|
||||
@ -10,8 +10,9 @@
|
||||
|
||||
### NO NEED TO EDIT BELOW THIS LINE ###
|
||||
|
||||
CC = gcc
|
||||
-CC = gcc
|
||||
-COPTS = -O -Wall
|
||||
+#CC = gcc
|
||||
LIBS = -lpq
|
||||
-CFLAGS = -I${PGDIR}/include
|
||||
-LDFLAGS = -L${PGDIR}/lib
|
||||
@ -20,7 +21,7 @@
|
||||
|
||||
|
||||
SRCS_LOG = pglogd.c
|
||||
@@ -51,7 +50,19 @@
|
||||
@@ -51,7 +50,19 @@ SRCS_LOGCTL = pglogctl.c
|
||||
all : pglogd pglogctl
|
||||
|
||||
pglogd : ${SRCS_LOG} ${HDRS_LOG}
|
||||
@ -33,12 +34,12 @@
|
||||
+
|
||||
+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}
|
||||
+ install -m 750 -s -c pglogd $(DESTDIR)${PREFIX}/bin
|
||||
+ install -m 750 -s -c pglogctl $(DESTDIR)${PREFIX}/bin
|
||||
+ install -m 755 -d $(DESTDIR)${PREFIX}/share/pglogd
|
||||
+ install -m 644 -c pglogd_tables.sql $(DESTDIR)${PGLOGD_SHARE}
|
||||
+ install -m 644 -c README $(DESTDIR)${PGLOGD_SHARE}
|
||||
+ install -m 644 -c CHANGELOG $(DESTDIR)${PGLOGD_SHARE}
|
||||
+ install -m 644 -c weblog_daily.sql $(DESTDIR)${PGLOGD_SHARE}
|
||||
+ install -m 644 -c queries.txt $(DESTDIR)${PGLOGD_SHARE}
|
||||
+ install -m 644 -c pglogd.conf $(DESTDIR)${PGLOGD_SHARE}
|
||||
|
@ -3,15 +3,15 @@ You need to create a PostgreSQL database for your logs:
|
||||
|
||||
# su - postgres
|
||||
$ createdb pglogd
|
||||
$ psql pglogd < /usr/local/share/pglogd/pglogd_tables.sql
|
||||
$ psql pglogd < %%PREFIX%%/share/pglogd/pglogd_tables.sql
|
||||
$ exit
|
||||
|
||||
and copy /usr/local/share/pglogd/pglogd.conf
|
||||
to /usr/local/etc/pglogd.conf
|
||||
and copy %%PREFIX%%/share/pglogd/pglogd.conf
|
||||
to %%PREFIX%%/etc/pglogd.conf
|
||||
|
||||
pglogd can then be started with:
|
||||
|
||||
# /usr/local/etc/rc.d/020.pglogd.sh start
|
||||
# %%PREFIX%%/etc/rc.d/020.pglogd.sh start
|
||||
|
||||
Read the complete documentation on configuring pglogd
|
||||
and apache at http://www.digitalstratum.com/pglogd/
|
@ -6,7 +6,4 @@ share/pglogd/queries.txt
|
||||
share/pglogd/weblog_daily.sql
|
||||
share/pglogd/README
|
||||
share/pglogd/CHANGELOG
|
||||
etc/rc.d/020.pglogd.sh
|
||||
@dirrm share/pglogd
|
||||
@unexec if cmp -s %D/etc/rc.d/020.pglogd.sh %D/etc/rc.d/020.pglogd.sh-dist; then rm -f %D/etc/rc.d/020.pglogd.sh; fi
|
||||
@exec [ -f %B/020.pglogd.sh ] || ( cp %B/%f %B/020.pglogd.sh; chmod 755 %B/020.pglogd.sh )
|
||||
|
Loading…
Reference in New Issue
Block a user