Académique Documents
Professionnel Documents
Culture Documents
Scripting
WeeSan Lee <weesan@cs.ucr.edu>
http://www.cs.ucr.edu/~weesan/cs183/
Goal
pkgtools2.sh
pkginstall2 -> pkgtools2.sh
pkgremove2 -> pkgtools2.sh
pkginfo2 -> pkgtools2.sh
pkgtools2.sh
/import/bin
/import/etc
$ IMPORT_HOME=/usr/local ./pkgtools2.sh
init -g 300 -u weesan -u wlee
pkginstall2
$ ./pkginstall2 emacs
pkgremove2
$ ./pkgremove2 emacs
pkginfo2
$ ./pkginfo2 -a
$ ./pkginfo2 -i
$ ./pkginfo2 -u
IMPORT_HOME
$ pkgtools2.sh -h
$ pkginstall2 -h
$ pkgremove2 -h
$ pkginfo2 -h
Manpages (optional)
pkgtools2.sh.8
pkginstall2.8
pkgremove.8
pkginfo2.8
Scoring
pkgtools2.sh
pkginstall2
pkgremove2
pkginfo2
Manpages (optional)
Due
20 points
30 points
30 points
20 points
10 points
php
$ CFLAGS=-O3 ./configure --prefix=/import
$ make
$ make install
/import/pkgs/php/bin/php
/import/pkgs/php/bin/pear
/import/pkgs/php/etc/pear.conf
/import/pkgs/php/include/php/
/import/pkgs/php/lib/php/
/import/pkgs/php/man/man1/php.1
/import/bin/
/import/bin/
/import/etc/
/import/include/
/import/lib/
/import/man/
/import/pkgs/php/bin/php
/import/pkgs/php/bin/pear
/import/pkgs/php/etc/pear.conf
/import/pkgs/php/include/php/
/import/pkgs/php/lib/php/
/import/pkgs/php/man/man1/php.1
Copy
/import/bin/php
/import/bin/pear
/import/etc/pear.conf
/import/include/php/
/import/lib/php/
/import/man/man1/php.1
/import/pkgs/php/bin/php
/import/pkgs/php/bin/pear
/import/pkgs/php/etc/pear.conf
/import/pkgs/php/include/php/
/import/pkgs/php/lib/php/
/import/pkgs/php/man/man1/php.1
/import/pkgs/php/bin/php
/import/pkgs/php/bin/pear
/import/pkgs/php/etc/pear.conf
/import/pkgs/php/include/php/
/import/pkgs/php/lib/php/
/import/pkgs/php/man/man1/php.1
/import/pkgs/pkg-version
Format of /import/pkgs/pkg-version
emacs
20.7
weesan
ftp:///emacs/
Wed PDT 2002
*
package name
version
login name, ie. $USER
url
date
deleted flag
/import/pkgs/pkg-version
pkginstall2
pkgremove2