summaryrefslogtreecommitdiff
path: root/extra/rcs
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-18 23:03:19 +0000
committerroot <root@rshg047.dnsready.net>2011-06-18 23:03:19 +0000
commitc80552b41838a5668458ebb1eb9b0f44ea6fe879 (patch)
treed8404bc10128ad69e29c762d116434876e5885a7 /extra/rcs
parente96f6ac6e912185a495a99af2b0d51b73bd1d044 (diff)
Sat Jun 18 23:03:19 UTC 2011
Diffstat (limited to 'extra/rcs')
-rw-r--r--extra/rcs/PKGBUILD37
-rw-r--r--extra/rcs/path.patch67
2 files changed, 90 insertions, 14 deletions
diff --git a/extra/rcs/PKGBUILD b/extra/rcs/PKGBUILD
index a9edf2fe8..b034c7cda 100644
--- a/extra/rcs/PKGBUILD
+++ b/extra/rcs/PKGBUILD
@@ -1,22 +1,31 @@
-# $Id: PKGBUILD 78028 2010-04-19 08:23:42Z dgriffiths $
-# Maintainer: dorphell <dorphell@archlinux.org>
+# $Id: PKGBUILD 127635 2011-06-17 10:04:08Z bisson $
+# Contributor: dorphell <dorphell@archlinux.org>
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+
pkgname=rcs
pkgver=5.7
-pkgrel=5
-pkgdesc="Revision Control System"
+pkgrel=6
+pkgdesc='Revision Control System'
arch=('i686' 'x86_64')
url="http://www.cs.purdue.edu/homes/trinkle/RCS/"
license=('GPL')
-depends=('glibc')
-source=(http://www.cs.purdue.edu/homes/trinkle/RCS/rcs-${pkgver}.tar.Z \
- rcs-5.7.patch)
-md5sums=('423282f0edb353296d9f3498ab683abf' '7ae4b7cb79259ccdf5eee0ab94fe2a2a')
+source=("http://www.cs.purdue.edu/homes/trinkle/RCS/rcs-${pkgver}.tar.Z" \
+ 'path.patch')
+sha1sums=('976774bda26a7743b8375797f92fbd18e51ac7a2'
+ '0f0be997e5d018e0d638b5f16430423ccb3774be')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- patch -Np1 -i ../rcs-5.7.patch || return 1
- ./configure --prefix=/usr || return 1
- make || return 1
- make prefix=${pkgdir}/usr man1dir=${pkgdir}/usr/share/man/man1 \
- man5dir=${pkgdir}/usr/share/man/man5 install || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../path.patch
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make install \
+ prefix="${pkgdir}"/usr \
+ man1dir="${pkgdir}"/usr/share/man/man1 \
+ man5dir="${pkgdir}"/usr/share/man/man5 \
+
}
diff --git a/extra/rcs/path.patch b/extra/rcs/path.patch
new file mode 100644
index 000000000..0f062b357
--- /dev/null
+++ b/extra/rcs/path.patch
@@ -0,0 +1,67 @@
+diff -Naur rcs-5.7-orig/src/conf.heg rcs-5.7/src/conf.heg
+--- rcs-5.7-orig/src/conf.heg 1995-06-02 11:19:00.000000000 -0700
++++ rcs-5.7/src/conf.heg 2004-11-29 12:41:37.000000000 -0800
+@@ -210,10 +210,10 @@
+ /* Do struct stat s and t describe the same file? Answer d if unknown. */
+ #define same_file(s,t,d) ((s).st_ino==(t).st_ino && (s).st_dev==(t).st_dev)
+ #define has_utimbuf 1 /* Does struct utimbuf work? */
+-#define CO "/usr/local/bin/co" /* name of 'co' program */
++#define CO "/usr/bin/co" /* name of 'co' program */
+ #define COMPAT2 0 /* Are version 2 files supported? */
+-#define DIFF "/usr/local/bin/diff" /* name of 'diff' program */
+-#define DIFF3 "/usr/local/bin/diff3" /* name of 'diff3' program */
++#define DIFF "/usr/bin/diff" /* name of 'diff' program */
++#define DIFF3 "/usr/bin/diff3" /* name of 'diff3' program */
+ #define DIFF3_BIN 1 /* Is diff3 user-visible (not the /usr/lib auxiliary)? */
+ #define DIFFFLAGS "-an" /* Make diff output suitable for RCS. */
+ #define DIFF_L 1 /* Does diff -L work? */
+@@ -221,7 +221,7 @@
+ #define DIFF_FAILURE 1 /* DIFF status if differences are found */
+ #define DIFF_TROUBLE 2 /* DIFF status if trouble */
+ #define ED "/bin/ed" /* name of 'ed' program (used only if !DIFF3_BIN) */
+-#define MERGE "/usr/local/bin/merge" /* name of 'merge' program */
++#define MERGE "/usr/bin/merge" /* name of 'merge' program */
+ #define TMPDIR "/tmp" /* default directory for temporary files */
+ #define SLASH '/' /* principal filename separator */
+ #define SLASHes '/' /* `case SLASHes:' labels all filename separators */
+diff -Naur rcs-5.7-orig/src/conf.sh rcs-5.7/src/conf.sh
+--- rcs-5.7-orig/src/conf.sh 1995-06-15 23:19:24.000000000 -0700
++++ rcs-5.7/src/conf.sh 2004-11-29 12:42:28.000000000 -0800
+@@ -32,7 +32,7 @@
+ # and can be inspected for clues otherwise.
+
+ # The Makefile overrides the following defaults.
+-: ${RCSPREFIX=/usr/local/bin/}
++: ${RCSPREFIX=/usr/bin/}
+ : ${ALL_CFLAGS=-Dhas_conf_h}
+ : ${CC=cc}
+ : ${COMPAT2=0}
+@@ -42,8 +42,8 @@
+ : ${DIFFFLAGS=-an}
+ : ${DIFF_L=1}
+ : ${DIFF_SUCCESS=0} ${DIFF_FAILURE=1} ${DIFF_TROUBLE=2}
+-: ${ED=/bin/ed}
+-: ${SENDMAIL='"/usr/lib/sendmail"'}
++: ${ED=/usr/bin/ed}
++: ${SENDMAIL='"/usr/sbin/sendmail"'}
+ # : ${LDFLAGS=} ${LIBS=} tickles old shell bug
+
+ C="$CC $ALL_CFLAGS"
+@@ -73,17 +73,6 @@
+ ech='echo -n' dots='... '
+ esac
+
+-$ech >&3 "$0: testing permissions $dots"
+-rm -f a.d &&
+-date >a.d &&
+-chmod 0 a.d &&
+-{ test -w a.d || cp /dev/null a.d 2>/dev/null; } && {
+- echo >&3 "$n$0: This command should not be run with superuser permissions."
+- exit 1
+-}
+-echo >&3 OK
+-rm -f a.d || exit
+-
+ $ech >&3 "$0: testing compiler for plausibility $dots"
+ echo 'main() { return 0; }' >a.c
+ rm -f a.exe a.out || exit