You are not logged in.

#1 2008-08-03 16:40:21

void.pointer
Member
Registered: 2008-07-30
Posts: 239

Confusion about packages

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/LICENSE

Not 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

#2 2008-08-03 16:49:15

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 3,682

Re: Confusion about packages

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

#3 2008-08-03 17:57:27

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: Confusion about packages

man install

its a cli program, as lucke stated, it copies (cp) and sets permissions (chmod)/(-m) at the same time.

Offline

#4 2008-08-03 18:10:54

void.pointer
Member
Registered: 2008-07-30
Posts: 239

Re: Confusion about packages

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

Board footer

Powered by FluxBB