Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/963

Submitted by:   mww@

removes need for beeing root to install & corrected manpage location to share/man

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4310 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Dec 27, 2003
1 parent 44dbca7 commit a6e5494b099b1432bc71bd48f425ff1726923ac6
Showing with 19 additions and 24 deletions.
  1. +19 −24 games/fortune/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.14 2003/08/15 13:03:43 fkr Exp $
# $Id: Portfile,v 1.15 2003/12/27 14:31:05 mww Exp $

PortSystem 1.0
name fortune
@@ -160,26 +160,21 @@ post-extract { cd ${worksrcpath}
system "cp fortune-simpsons-chalkboard/* datfiles"
} }

destroot { cd ${worksrcpath}
system "install -o root -m 755 -d ${destroot}${prefix}/bin"
system "install -o root -m 755 -d ${destroot}${prefix}/man/man6"
system "install -o root -m 755 -d ${destroot}${prefix}/man/man8"
system "install -o root -m 755 -d \
${destroot}${prefix}/share/games/fortune"
system "install -o root -m 755 -c fortune/fortune \
${destroot}${prefix}/bin"
system "install -o root -m 755 -c strfile/strfile \
${destroot}${prefix}/bin"
system "install -o root -m 755 -c unstr/unstr \
${destroot}${prefix}/bin"
system "install -o root -m 644 -c fortune/fortune.6.gz \
${destroot}${prefix}/man/man6"
system "install -o root -m 644 -c strfile/strfile.8.gz \
${destroot}${prefix}/man/man8"
system "install -o root -m 644 -c strfile/strfile.8.gz \
${destroot}${prefix}/man/man8/unstr.8.gz"

cd datfiles
foreach datfile $datfiles {
system "install -o root -m 644 -c $datfile \
${destroot}/${prefix}/share/games/fortune" } }
destroot {
file mkdir ${destroot}${prefix}/share/games/fortune
file copy ${worksrcpath}/fortune/fortune ${destroot}${prefix}/bin
file copy ${worksrcpath}/strfile/strfile ${destroot}${prefix}/bin
file copy ${worksrcpath}/unstr/unstr ${destroot}${prefix}/bin
file copy ${worksrcpath}/fortune/fortune.6.gz \
${destroot}${prefix}/share/man/man6
file copy ${worksrcpath}/strfile/strfile.8.gz \
${destroot}${prefix}/share/man/man8
file copy ${worksrcpath}/strfile/strfile.8.gz \
${destroot}${prefix}/share/man/man8/unstr.8.gz

cd datfiles
foreach datfile $datfiles {
file copy ${worksrcpath}/datfiles/${datfile} \
${destroot}/${prefix}/share/games/fortune
}
}

0 comments on commit a6e5494

Please sign in to comment.
You can’t perform that action at this time.