1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-06 02:08:17 +00:00
parent 2c8e376227
commit 63a796294a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356735
3 changed files with 55 additions and 13 deletions

View File

@ -8,24 +8,21 @@ CATEGORIES= sysutils
MASTER_SITES= http://kiza.kcore.de/software/snowlog/download/
MAINTAINER= clsung@FreeBSD.org
COMMENT= A webserver access log browser/analyzer
COMMENT= Webserver access log browser/analyzer
LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
MAN1= snowlog.1
DOCS= INSTALLATION doc/README doc/filters.example
SHAREDOCS= referers.regexp useragents.regexp
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/share && ${INSTALL_DATA} ${SHAREDOCS} ${DATADIR}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/share && ${INSTALL_DATA} ${SHAREDOCS} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.orig Thu Jul 29 03:04:24 2004
+++ Makefile Fri Jul 30 09:45:19 2004
--- Makefile.orig 2005-07-21 02:13:17.000000000 +0800
+++ Makefile 2014-06-06 10:05:00.121745680 +0800
@@ -1,13 +1,10 @@
-CC= gcc
-MAKE= make
@ -16,7 +16,7 @@
OBJFILES= main.o loadlog.o internals.o interface.o snowtk.o regexp.o filters.o setup.o
@@ -27,7 +24,7 @@
@@ -27,35 +24,35 @@ man:
sed s#DATAPATH#$(DATAPATH)# | sed s#VERSION#$(VERSION)# \
> doc/man/snowlog.1
@ -24,4 +24,48 @@
+install: install-bin install-man
install-bin: snowlog
if [ ! -d "$(PREFIX)/bin" ]; then \
- if [ ! -d "$(PREFIX)/bin" ]; then \
- mkdir -p $(PREFIX)/bin; \
+ if [ ! -d "$(DESTDIR)$(PREFIX)/bin" ]; then \
+ mkdir -p $(DESTDIR)$(PREFIX)/bin; \
fi
- $(INSTALL) -s src/snowlog $(PREFIX)/bin
+ $(INSTALL) -s src/snowlog $(DESTDIR)$(PREFIX)/bin
install-data:
- if [ ! -d "$(DATAPATH)/snowlog" ]; then \
- mkdir -p $(DATAPATH)/snowlog; \
+ if [ ! -d "$(DESTDIR)$(DATAPATH)/snowlog" ]; then \
+ mkdir -p $(DESTDIR)$(DATAPATH)/snowlog; \
fi
- $(INSTALL) -m 0644 share/referers.regexp $(DATAPATH)/snowlog
- $(INSTALL) -m 0644 share/useragents.regexp $(DATAPATH)/snowlog
+ $(INSTALL) -m 0644 share/referers.regexp $(DESTDIR)$(DATAPATH)/snowlog
+ $(INSTALL) -m 0644 share/useragents.regexp $(DESTDIR)$(DATAPATH)/snowlog
install-man: man
- if [ ! -d "$(PREFIX)/man/man1" ]; then \
- mkdir -p $(PREFIX)/man/man1; \
+ if [ ! -d "$(DESTDIR)$(PREFIX)/man/man1" ]; then \
+ mkdir -p $(DESTDIR)$(PREFIX)/man/man1; \
fi
- $(INSTALL) -m 0644 doc/man/snowlog.1 $(PREFIX)/man/man1
+ $(INSTALL) -m 0644 doc/man/snowlog.1 $(DESTDIR)$(PREFIX)/man/man1
install-doc:
- if [ ! -d "$(DOCPATH)/snowlog" ]; then \
- mkdir -p $(DOCPATH)/snowlog; \
+ if [ ! -d "$(DESTDIR)$(DOCPATH)/snowlog" ]; then \
+ mkdir -p $(DESTDIR)$(DOCPATH)/snowlog; \
fi
- $(INSTALL) -m 0644 INSTALLATION $(DOCPATH)/snowlog
- $(INSTALL) -m 0644 doc/README $(DOCPATH)/snowlog
- $(INSTALL) -m 0644 doc/filters.example $(DOCPATH)/snowlog
- $(INSTALL) -m 0644 Changelog $(DOCPATH)/snowlog
+ $(INSTALL) -m 0644 INSTALLATION $(DESTDIR)$(DOCPATH)/snowlog
+ $(INSTALL) -m 0644 doc/README $(DESTDIR)$(DOCPATH)/snowlog
+ $(INSTALL) -m 0644 doc/filters.example $(DESTDIR)$(DOCPATH)/snowlog
+ $(INSTALL) -m 0644 Changelog $(DESTDIR)$(DOCPATH)/snowlog
clean: clean-bin clean-man

View File

@ -1,4 +1,5 @@
bin/snowlog
man/man1/snowlog.1.gz
%%PORTDOCS%%%%DOCSDIR%%/INSTALLATION
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/filters.example