forked from ports/contrib
dos2unix: new port
This commit is contained in:
parent
16889cc798
commit
f54e19dfbf
8
dos2unix/.footprint
Normal file
8
dos2unix/.footprint
Normal file
@ -0,0 +1,8 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/dos2unix
|
||||
-rwxr-xr-x root/root usr/bin/mac2unix
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/dos2unix.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/mac2unix.1.gz
|
1
dos2unix/.md5sum
Normal file
1
dos2unix/.md5sum
Normal file
@ -0,0 +1 @@
|
||||
d3b7d3a3d70130b24e312f05e777cbb5 dos2unix-3.1-21.src.rpm
|
31
dos2unix/Pkgfile
Normal file
31
dos2unix/Pkgfile
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user