diff options
author | sat <sat@FreeBSD.org> | 2006-05-08 22:03:37 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2006-05-08 22:03:37 +0800 |
commit | 2b9c2b1970bd4e6ced4f862c351c4293f130ce90 (patch) | |
tree | 12345a226b2f85c47f24f09f9994b9408718b6f2 /misc | |
parent | 29c2d20a82a7df37bc1b4046cab82bfe719836df (diff) | |
download | freebsd-ports-gnome-2b9c2b1970bd4e6ced4f862c351c4293f130ce90.tar.gz freebsd-ports-gnome-2b9c2b1970bd4e6ced4f862c351c4293f130ce90.tar.zst freebsd-ports-gnome-2b9c2b1970bd4e6ced4f862c351c4293f130ce90.zip |
- Move plist to Makefile
- Use BZIP2
PR: ports/96687
Submitted by: sat
Approved by: krion (mentor)
Approved by: Martin Wilke <freebsd@unixfreunde.de> (maintainer)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/nut/Makefile | 40 | ||||
-rw-r--r-- | misc/nut/distinfo | 6 | ||||
-rw-r--r-- | misc/nut/pkg-plist | 9 |
3 files changed, 23 insertions, 32 deletions
diff --git a/misc/nut/Makefile b/misc/nut/Makefile index 3c51983ed32a..d4521af7684a 100644 --- a/misc/nut/Makefile +++ b/misc/nut/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: nut -# Date created: Tue Apr 29 12:45:30 GMT 2003 -# Whom: Kirill Ponomarew <ponomarew@oberon.net> +# New ports collection makefile for: nut +# Date created: Tue Apr 29 12:45:30 GMT 2003 +# Whom: Kirill Ponomarew <ponomarew@oberon.net> # # $FreeBSD$ # @@ -9,37 +9,37 @@ PORTNAME= nut PORTVERSION= 11.4 CATEGORIES= misc MASTER_SITES= http://www.lafn.org/~av832/ \ + http://bsd1.csme.ru/myports/ \ + http://bsd2.csme.ru/myports/ \ + http://bsd3.csme.ru/myports/ \ http://voodoo.bawue.com/download/ PKGNAMEPREFIX= health- MAINTAINER= freebsd@unixfreunde.de COMMENT= Nutrition software to record what you eat -MAN1= nut.1 +MAN1= ${PORTNAME}.1 +USE_BZIP2= yes USE_GMAKE= yes +PORTDOCS= CREDITS LICENSE README ALL_TARGET= ${PORTNAME} +RAW= FOOD_DES.txt NUT_DATA.txt WEIGHT.lib WEIGHT.txt sr18.nut +PLIST_FILES= bin/${PORTNAME} ${RAW:S,^,%%DATADIR%%/,} +PLIST_DIRS= %%DATADIR%% post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ - s|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s|/usr/local/lib/nut|${DATADIR}|" \ + -e 's|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${PREFIX}/etc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/raw.data/FOOD_DES.txt ${PREFIX}/etc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/raw.data/NUT_DATA.txt ${PREFIX}/etc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/raw.data/WEIGHT.lib ${PREFIX}/etc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/raw.data/WEIGHT.txt ${PREFIX}/etc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/raw.data/sr18.nut ${PREFIX}/etc/${PORTNAME} - ${INSTALL_MAN} ${WRKSRC}/nut.1 ${MANPREFIX}/man/man1 - -post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + ${INSTALL} -d ${DATADIR} + ${INSTALL_DATA} ${RAW:S,^,${WRKSRC}/raw.data/,} ${DATADIR}/ + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/ .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for i in README - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor + ${INSTALL} -d ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ .endif .include <bsd.port.mk> diff --git a/misc/nut/distinfo b/misc/nut/distinfo index 7ec121b3c238..8f18b44d9bcc 100644 --- a/misc/nut/distinfo +++ b/misc/nut/distinfo @@ -1,3 +1,3 @@ -MD5 (nut-11.4.tar.gz) = 7c4d1b5056488f91f111a64f87898023 -SHA256 (nut-11.4.tar.gz) = bf0bc99bf5561b0fa9c91db3b27ea3951d002f259cea8f605be2a15e8e20d07f -SIZE (nut-11.4.tar.gz) = 1083477 +MD5 (nut-11.4.tar.bz2) = 85dc86ee9e8fd129751c6d7d0fe16a54 +SHA256 (nut-11.4.tar.bz2) = 511793923c842de30e2ed0e593b057287e874d130c1c7d8f13d569dc5d29f8ad +SIZE (nut-11.4.tar.bz2) = 869501 diff --git a/misc/nut/pkg-plist b/misc/nut/pkg-plist deleted file mode 100644 index 144bec8fd296..000000000000 --- a/misc/nut/pkg-plist +++ /dev/null @@ -1,9 +0,0 @@ -bin/nut -etc/nut/FOOD_DES.txt -etc/nut/NUT_DATA.txt -etc/nut/WEIGHT.lib -etc/nut/WEIGHT.txt -etc/nut/sr18.nut -%%PORTDOCS%%%%DOCSDIR%%/README -@dirrm etc/nut -%%PORTDOCS%%@dirrm %%DOCSDIR%% |