FreeBSD Bugzilla – Attachment 123593 Details for
Bug 166966
A script to make light pkg-plist files for new FreeBSD Ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 2.40 KB, created by
nemysis
on 2012-04-15 16:20:08 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
nemysis
Created:
2012-04-15 16:20:08 UTC
Size:
2.40 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># freebsd-make-pkg-plist ># >echo x - freebsd-make-pkg-plist >sed 's/^X//' >freebsd-make-pkg-plist << 'e9657aada85f3163eaacb8b9e1a3c311' >X#!/usr/local/bin/bash >X >X# Author nemysis >X >Xecho "" >Xecho "$0" >Xecho "" >X >Xecho "" >Xecho You are `whoami` >Xecho"" >Xecho "Start this as root!" >Xecho "" >X >X# Without root no chance >Xif(( $UID != 0 )); then >Xecho "This script needs root privileges. Aborting now..." >Xecho "" >Xexit 1 >Xfi >X >X >Xrm -fr /var/tmp/ports >X >Xecho "" >Xecho -n "Which Category would you use?" >Xcd >Xecho "" >Xecho "" >Xls /usr/local/ports/local/ >Xecho "" >Xread CATEGORY >Xecho "" >Xcd /usr/local/ports/local/$CATEGORY >X >Xecho -n "Which FreeBSD Port would you make?" >Xcd >Xecho "" >Xecho "" >Xls -l /usr/local/ports/local/$CATEGORY >Xecho "" >Xread PORTNAME >X >Xcd /usr/local/ports/local/$CATEGORY/$PORTNAME >X >Xecho "" >Xecho "make makesum" >Xmake makesum >X >Xecho "" >Xecho "" >Xecho "Check with portlint..." >Xecho "" >Xportlint >X >Xecho "" >Xecho "" >Xecho -n "Is all good with Makefile? (y,n)" >Xecho "" >Xecho "" >Xread MAKEFILE >Xif [ "${MAKEFILE}" = "Y" -o "${MAKEFILE}" = "y" ] >X then >X echo "" >X echo "Good now make pkg-plist.." >X echo "" >X else >X echo "" >X echo "Please adjust Makefile and restart again script $0!" >X exit 1 >Xfi >X >Xecho "" >Xmkdir /var/tmp/ports`make -V $PORTNAME` >Xmtree -U -f `make -V MTREE_FILE` -d -e -p /var/tmp/ports`make -V $PORTNAME` >Xmkdir /var/tmp/ports`make -V $PORTNAME`/share/applications >Xmake depends PREFIX=/var/tmp/ports`make -V $PORTNAME` >X >Xmake install PREFIX=/var/tmp/ports`make -V $PORTNAME` >X >Xplist -Md -m `make -V MTREE_FILE` /var/tmp/ports`make -V $PORTNAME` > pkg-plist >X >X# Adjust what You don't wish to be in pkg-plist, attention... >Xsed -i '' -e '/usr/d' pkg-plist >Xsed -i '' -e "/share\/$PORTNAME/d" pkg-plist >X#sed -i '' -e '/share\/applications/d' pkg-plist >Xsed -i '' -e '/share\/doc/d' pkg-plist >X#sed -i '' -e '/share\/icons/d' pkg-plist >Xsed -i '' -e '/share\/licenses/d' pkg-plist >Xsed -i '' -e '/dirrm share\/applications/d' pkg-plist >Xsed -i '' -e '/dirrm share\/icons/d' pkg-plist >X >Xecho "" >Xecho "Manualy look pkg-plist and adjust it if needed!" >Xecho "" >e9657aada85f3163eaacb8b9e1a3c311 >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 166966
: 123593