summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-03-09 19:50:11 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-03-09 19:50:11 +0000
commit23c3d0a15164f91b4388a826385f2e8d4e11a6b4 (patch)
treee06a5f116d1f98cc817679cdf7f10abe95c382c6 /archivers
parent1. Respect CFLAGS (diff)
o update to 2.80.
o show message to activate linuxulator to make extract.
Notes
Notes: svn path=/head/; revision=39318
Diffstat (limited to 'archivers')
-rw-r--r--archivers/linux_rar/Makefile31
-rw-r--r--archivers/linux_rar/distinfo2
-rw-r--r--archivers/linux_rar/pkg-plist2
-rw-r--r--archivers/linux_rar/scripts/pre-extract8
4 files changed, 24 insertions, 19 deletions
diff --git a/archivers/linux_rar/Makefile b/archivers/linux_rar/Makefile
index e4317656d499..7d886de64aa8 100644
--- a/archivers/linux_rar/Makefile
+++ b/archivers/linux_rar/Makefile
@@ -7,17 +7,17 @@
#
PORTNAME= linux_rar
-PORTVERSION= 2.71
+PORTVERSION= 2.80
CATEGORIES= archivers linux
-MASTER_SITES= ftp://ftp.netlab.sk/public/rarsoft/rar/ \
+MASTER_SITES= ftp://ftp.download.com/pub/linux/ \
+ ftp://ftp.netlab.sk/public/rarsoft/rar/ \
ftp://rarsoft.ti.sk/pub/rar/
-DISTNAME= rarlnx271
+DISTNAME= rarlnx${PORTVERSION:S/0//S/.//}
EXTRACT_SUFX= .sfx
MAINTAINER= sf@FreeBSD.org
-BUILD_DEPENDS= /compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
-RUN_DEPENDS= /compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
+USE_LINUX= yes
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
@@ -29,12 +29,17 @@ EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= # empty
STRIP= # empty: do not strip linux binary during INSTALL_PROGRAM
WRKSRC= ${WRKDIR}/rar
-PLIST= ${WRKSRC}/PLIST
-RARDOCS= license.txt rar_faq.txt rar_site.txt readme.txt register.frm \
- register.txt rereg.txt technote.txt whatsnew.txt
+RARDOCS= license.txt rar.txt rar_faq.txt rar_site.txt readme.txt \
+ register.frm register.txt rereg.txt technote.txt whatsnew.txt
RARFILES= rarfiles.lst default.sfx dos.sfx
+.if defined(WITH_UNRAR)
+PLIST_SUB= UNRAR=""
+.else
+PLIST_SUB= UNRAR="@comment "
+.endif
+
post-fetch:
@${CHMOD} a+x ${DISTDIR}/${DISTFILES}
@@ -49,7 +54,6 @@ do-install:
.if defined(WITH_UNRAR)
@${INSTALL_PROGRAM} ${WRKSRC}/unrar ${PREFIX}/bin
brandelf -t Linux ${PREFIX}/bin/unrar
- @${ECHO} bin/unrar >> ${PLIST}
.endif
.for i in ${RARDOCS}
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/rar
@@ -57,15 +61,6 @@ do-install:
.for i in ${RARFILES}
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/rar
.endfor
- @${INSTALL_MAN} ${WRKSRC}/rar.txt ${PREFIX}/man/cat1/rar.1
-
- @${CP} ${PKGDIR}/pkg-plist ${PLIST}
-.if !defined(NOMANCOMPRESS)
- @${GZIP_CMD} ${PREFIX}/man/cat1/rar.1
- @${ECHO} man/cat1/rar.1.gz >> ${PLIST}
-.else
- @${ECHO} man/cat1/rar.1 >> ${PLIST}
-.endif
post-install:
@${ECHO_MSG} "This is 40 days trial version of commercial software."
diff --git a/archivers/linux_rar/distinfo b/archivers/linux_rar/distinfo
index 2e217e32bcc5..8e19106cd789 100644
--- a/archivers/linux_rar/distinfo
+++ b/archivers/linux_rar/distinfo
@@ -1 +1 @@
-MD5 (rarlnx271.sfx) = 5042cf753833ab8ca4fce21a1a28b579
+MD5 (rarlnx28.sfx) = 1d4edfebbc7a1bc553a8bce2c9670fd8
diff --git a/archivers/linux_rar/pkg-plist b/archivers/linux_rar/pkg-plist
index a50391efe5d5..43349fe9829d 100644
--- a/archivers/linux_rar/pkg-plist
+++ b/archivers/linux_rar/pkg-plist
@@ -1,5 +1,7 @@
bin/rar
+%%UNRAR%%bin/unrar
share/doc/rar/license.txt
+share/doc/rar/rar.txt
share/doc/rar/rar_faq.txt
share/doc/rar/rar_site.txt
share/doc/rar/readme.txt
diff --git a/archivers/linux_rar/scripts/pre-extract b/archivers/linux_rar/scripts/pre-extract
new file mode 100644
index 000000000000..11d27d6cb07c
--- /dev/null
+++ b/archivers/linux_rar/scripts/pre-extract
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if kldstat -v | grep -q linuxelf; then exit; fi
+
+cat <<_E_O_F_
+This port requires linux emulator activated before extract distfile.
+_E_O_F_
+exit 1