*BSD News Article 18199


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!nigel.msen.com!math.fu-berlin.de!news.belwue.de!softserv.zdv.uni-tuebingen.de!studserv!zxmsd01
From: zxmsd01@studserv.zdv.uni-tuebingen.de (Gunther Schadow)
Newsgroups: comp.os.386bsd.apps
Subject: Useful feature added to install(1)
Date: 9 Jul 93 23:52:34 GMT
Organization: InterNetNews at ZDV Uni-Tuebingen
Lines: 68
Message-ID: <zxmsd01.742261954@studserv>
NNTP-Posting-Host: studserv.zdv.uni-tuebingen.de
Summary: Install(1) now keeps track of program packages.
Keywords: install packages

The following is a short diff to install, which invents a simple
mecanism to keep track of all files of one software package. The files
are listed in /var/packages/<package_name>. Thus you can for example
remove a whole package by the sh command:

# rm `cat /var/packages/<package_name>`

The package name, install shall assume is set by a -p option.

There should be date fields in the database too, in order to let a
special remove executable keep track of file updates. But this one I
think does it's job quite well at first.

I didn't care about POSIX complience in adding that feature, but I
desparately need it (more than 250 files in /usr/local/bin, plus lib,
and man files)

Hope other people find it useful too.

regards
-Gunther Schadow

PS: Here is the uuencoded gzipped context diff:
-------------------------------------------------------------
begin 644 xinstall.diff.z
M'XL(`$OW/2P``[57^V_;-A#^V?DKKAZ6^,'(DORV$0SNFG39VB:H,Z!`$ABR
M1-M"9$D@J3PP]'_?'?6TZQ8=U@:!3![OCM]]=SQ*GK]:P:D+SWXHE1,$G4XV
M,"S8OGPI/&JU6H>4:W-'P05?@M4%VYQT>Y/N"*SQN'MT>GIZT).V^#,)P#+!
M-"?]TJ*U^Z>W['59;P1Z2@YI.@8<G1X!&%<Q7`2PA9F`;>3Q4A21*'H*N2AE
M:Y*M193$1^U<%I,L=MP'9ZVM<;;R`V[IITV2#UO(D)>>7'D8ZICU>R74OLGZ
M@Y\/%<=WQX9A5&0?P/,%=U4D7@X"'?;9R"R!#H=L;.9`YS%W_=4+.&$*2ON]
M5!I5=3F%9Q"^=)6@EJN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=9
M>M,%F;K3DJ7@SH,.-=.-49=FM:S(4!>#PFA2I=R@=/Y;YAQ;@9,$*MLID6A+
M9!_NY=BZK9U>WF-6MUOBYL^^:EAIKCX3U[AWIT57=YC?*N`YRED2!&Q:N.RO
MH)$M$9<HP8,6"\STJI%ED.TWJGKG5UEGN<?F-+4B3Z_(YFQ%&Y;6=0>36#C'
M.UZ(2.3+N35=_1EX/?],/_2@6(IZ0UKIZ#:R8L,I%<PMU0X@'_<,CG%)+K-R
M)42E[?$Q-/2J(=5"]Y9CF"\N+][?-.'L3`_?7'[,*XJN[L846K0!56!>W]!N
M%[VA5LN:9:.5%FZFQ""+8Y?>E1M$DE/D*;XT7V8E7P?3WATPJV=5TM['<NV/
MRK0W'B/?:R9AX(</.36ETZ]B-%.,WX180?A5@+;98[8Y+@':ML5LNP(PS?A*
M1-L*MKUJW4.25L&JK$2LHU_E75@O`BA!`71:AY$A4W:_<F+L(2(;]7-DI74;
M+_'BB.`:S6M)[-$;+[V,YDN!OQ0.?C2T(3T_5.F+;#''GJ(K^F"K*B;&Z2#H
MRF[3SO3ZD!X)R%XF:CIHB!)%WQCI$KZQR/2SAO8]&.L(8QT-\[LHZR0XTN6<
MEDA.IU0>NF78BNM:;Y*_`\+MJ2OO\;E.;VD:;O4]3*,H_>"YKWX!3N_"._R,
KRD3XE;7_?84IJY22E65-OT-9)NM:13)^*N+;TSC/X8^`_R_8KGMD'!```/R,
`
end

-- 
-------------------------------------------------------------------------------
Gunther Schadow,	          E-mail: Gunther@studserv.ZDV.Uni-Tuebingen.DE
Hopfenweg 19,                     (49) 30/6618841
Berlin-Rudow, Germany.____________Stop__________Horn Please!__________O.K. TATA