You are not logged in.
Pages: 1
Hi,
I'm currently trying to upgrade the Subversion package, however I'm noticing that the author put "install" commands inside of the build() function. The Wiki doesn't clearly discuss the install process in this article. Examples of what is happening is:
install -m 755 $startdir/src/svnserve $startdir/pkg/etc/rc.d
install -m 644 $startdir/src/svn $startdir/pkg/etc/xinetd.d
install -m 644 $startdir/src/svnserve.conf $startdir/pkg/etc/conf.d/svnserve
install -m 755 $startdir/src/subversion-$pkgver/contrib/client-side/svnmerge.py $startdir/pkg/usr/bin/svnmerge
install -D -m 644 $startdir/src/subversion-$pkgver/COPYING $startdir/pkg/usr/share/licenses/$pkgname/LICENSENot sure why the wiki didn't go over this. Can someone explain what is going on? I'm not even remotely close to understanding what the install file does as the wiki explains it. Why is this person using the install command instead? If this was legal, wouldn't the wiki have gone over it?
Offline
install is pretty much like cp, but with setting permissions. It's often used in PKGBUILDs to put files in proper places inside a package.
install file is a different thing, it's used to run commands before/after installing/upgrading/removing packages, eg. running depmod after installing kernel module to make it available for loading or echoing instructions.
Last edited by lucke (2008-08-03 16:52:39)
Online
man installits a cli program, as lucke stated, it copies (cp) and sets permissions (chmod)/(-m) at the same time.
Offline
Thanks for responding guys. Don't misunderstand me, it was pretty obvious what the install command was doing. I was asking why it wasn't covered in the Wiki article, is all.
Offline
Pages: 1