blob: ade2467f0ab6cfe318d5328fdff5a86513944193 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.14 2007/01/07 09:14:06 rillig Exp $
#
DISTNAME= sitescooper-2.2.8
PKGREVISION= 3
CATEGORIES= net comms
MASTER_SITES= http://sitescooper.cx/released/
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://sitescooper.cx/
COMMENT= Retrieve stories from websites and convert to Palm readable format
DEPENDS+= p5-libwww>=5.46:../../www/p5-libwww
DEPENDS+= pilotmgr-[0-9]*:../../comms/pilotmgr
USE_TOOLS+= perl:run
NO_BUILD= yes
CONF_FILES+= ${PREFIX}/share/examples/sitescooper/sitescooper.cf \
${PREFIX}/etc/sitescooper.cf \
INSTALLATION_DIRS= bin etc ${PKGMANDIR}/man1
do-configure:
.for file in sitescooper rss-to-site subs-to-site
cd ${WRKSRC} && \
${SED} -e 's:/usr/bin/perl:${PERL5}:g' <${file}.pl >${file}
.endfor
.for file in lib/Scoop.pm sitescooper.cf
cd ${WRKSRC} && ${CP} ${file} ${file}.orig && \
${SED} -e 's:/etc:${PREFIX}/etc:g' \
-e 's!^# SitescooperDir: /where/sitescooper/is/installed!SitescooperDir: ${PREFIX}/share/sitescooper!' \
<${file}.orig >${file} && \
${RM} ${file}.orig
.endfor
${RM} -rf `${FIND} ${WRKSRC}/* -name CVS -type d -print`
do-install:
.for file in sitescooper rss-to-site subs-to-site
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/${file}.man ${PREFIX}/${PKGMANDIR}/man1/${file}.1
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/sitescooper/lib
${CP} -R ${WRKSRC}/site_samples ${PREFIX}/share/sitescooper
${CP} -R ${WRKSRC}/lib/* ${PREFIX}/share/sitescooper/lib
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sitescooper
${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/sitescooper
.for file in CHANGES.txt README.txt sitescooper.spec
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/sitescooper
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sitescooper
${INSTALL_DATA} ${WRKSRC}/sitescooper.cf \
${PREFIX}/share/examples/sitescooper/sitescooper.cf
.include "../../mk/bsd.pkg.mk"
|