Skip to content
Permalink
Browse files

Added a news spool directory and an ui_msg

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4009 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Matt Anton
Matt Anton committed Nov 21, 2003
1 parent 3a931ef commit 29e7ed12a6e20e460fcbf9c70dd8109fd22df4af
Showing with 23 additions and 5 deletions.
  1. +23 −5 news/leafnode/Portfile
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.1 2003/11/18 23:54:11 matt Exp $
# $Id: Portfile,v 1.2 2003/11/21 21:33:06 matt Exp $

PortSystem 1.0
name leafnode
version 1.9.46.rel
revision 1
categories news
platforms darwin
maintainers matt@opendarwin.org
@@ -33,10 +34,27 @@ configure.args --mandir=${prefix}/share/man \

pre-configure { adduser news password={\*} uid=[nextuid] gid=[nextgid] realname=${name} home=${prefix}/var/spool/news shell=/dev/null
addgroup news gid=[nextgid]
}
}

post-destroot { system "install -d -o news -m 755 '${destroot}${prefix}/var/spool/news'"
system "touch '${destroot}${prefix}/var/spool/news/.turd'"
system "install -d -o root -m 755 '${destroot}${prefix}/share/doc/${name}' \
&& install -c -m 644 '${worksrcpath}/INSTALL' '${destroot}${prefix}/share/doc/${name}' \
&& install -c -m 644 '${worksrcpath}/README' '${destroot}${prefix}/share/doc/${name}' \
&& install -c -m 644 '${worksrcpath}/FAQ.txt' '${destroot}${prefix}/share/doc/${name}' \
&& install -c -m 644 '${worksrcpath}/README-FQDN' '${destroot}${prefix}/share/doc/${name}'"
}

# Notify the user how to launch Leafnode and what has been modified in the NetInfo db
post-install { ui_msg "\nIn order to launch Leafnode you'll have to look at"
ui_msg "share/doc/leafnode/INSTALL, there's a xinetd sample"
ui_msg "service file.\n"
ui_msg "Also, a 'news' user and group has been created in your"
ui_msg "local NetInfo database. You may want to delete them"
ui_msg "if you uninstall Leafnode.\n"
}

variant ipv6 { configure.args-append --with-ipv6
}

variant ipv6 {
configure.args-append --with-ipv6
}

0 comments on commit 29e7ed1

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