summaryrefslogtreecommitdiff
path: root/dos2unix/Pkgfile
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@users.sourceforge.net>2008-11-15 01:38:25 +0100
committerJose V Beneyto <sepen@users.sourceforge.net>2008-11-15 01:59:46 +0100
commitf54e19dfbfb16284c25952bd9ca92a507d32fa33 (patch)
tree8b6eba89277ac9014073dfcbf737348f716d02ec /dos2unix/Pkgfile
parent16889cc798afc3d7f4ae0c3fed142fbd7e1a88a3 (diff)
downloadcontrib-f54e19dfbfb16284c25952bd9ca92a507d32fa33.tar.gz
contrib-f54e19dfbfb16284c25952bd9ca92a507d32fa33.tar.xz
dos2unix: new port
Diffstat (limited to 'dos2unix/Pkgfile')
-rw-r--r--dos2unix/Pkgfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/dos2unix/Pkgfile b/dos2unix/Pkgfile
new file mode 100644
index 000000000..562203715
--- /dev/null
+++ b/dos2unix/Pkgfile
@@ -0,0 +1,31 @@
+# Description: Dos2unix converts DOS or MAC text files to UNIX format
+# URL: NA
+# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
+# Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
+# Depends on: rpm2targz
+
+name=dos2unix
+version=3.1-21
+release=1
+source=(ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/$name-$version.src.rpm)
+
+build() {
+ rpm2targz $name-$version.src.rpm
+ tar xzf $name-$version.src.tar.gz
+ tar xjf $name-3.1.tar.bz2
+ patch -p0 -i $name-3.1.patch
+ patch -p0 -i $name-3.1-segfault.patch
+ patch -p0 -i $name-3.1-safeconv.patch
+ patch -p0 -i $name-3.1-manpage-update-57507.patch
+ patch -p0 -i $name-3.1-preserve-file-modes.patch
+ patch -p0 -i $name-3.1-tmppath.patch
+ cd $name-3.1
+# sed -i 's|mktemp|mkstemp|g' dos2unix.c
+ make clean
+ make link
+ make
+ install -D -m 0755 $name $PKG/usr/bin/$name
+ install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
+ install -D -m 0755 mac2unix $PKG/usr/bin/mac2unix
+ install -D -m 0644 mac2unix.1 $PKG/usr/man/man1/mac2unix.1
+}

Generated by cgit