My interactive version of pkg_add - submitted!

2008-10-05 Thread Marin Atanasov

Hi, list! :)

I've finally finished the program and have submitted it to the FreeBSD 
ports tree.

Now all is left is to wait till the program gets added to the ports tree.

After it gets added (let's hope so :)) to the FreeBSD ports it will be 
under ports-mgmt/pkg_add_it


Meanwhile I've added a few changes to the code, and another a tiny but 
useful feature - a pager.
Now the program can interact with a pager defined by $PAGER variable, so 
you can read the package list.


Well, if there something new - I'll let you know :)

Best regards,
Marin

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-04 Thread Marin Atanasov

Marin Atanasov wrote:

Thanks, I've read it and now my Makefile is as follows:
PROG=   pkg_add_it
SRCS=   fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c

.include 
.include 

It builds, installs, cleans, etc.. but when I `make install' it 
finishes successfully, but does not actually install the files - 
`pkg_add_it' and `pkg_add_it.1'


Perhaps I'm missing something here.. but what?
Thanks, again!



I figured it out - after adding these lines to my Makefile everything is 
ok now:

do-install:
   ${INSTALL_PROGRAM} ${WRKSRC}/pkg_add_it ${PREFIX}/sbin/pkg_add_it
   ${INSTALL_MAN} ${WRKSRC}/pkg_add_it.1 ${MAN1PREFIX}/man/man1

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-04 Thread Marin Atanasov

Michel Talon wrote:

Marin Atanasov wrote:

  

Should I add something else to it or modify something?



You should remove a lot, because many implicit rules are already defined 
in /usr/share/mk/sys.mk which is sourced by make automatically. See for
example 
/usr/src/usr.sbin/pkg_install/add/Makefile

to discover how little is needed.

  

Thanks, I've read it and now my Makefile is as follows:
PROG=   pkg_add_it
SRCS=   fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c

.include 
.include 

It builds, installs, cleans, etc.. but when I `make install' it finishes 
successfully, but does not actually install the files - `pkg_add_it' and 
`pkg_add_it.1'


Perhaps I'm missing something here.. but what?
Thanks, again!

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-04 Thread Michel Talon
Marin Atanasov wrote:

> Should I add something else to it or modify something?

You should remove a lot, because many implicit rules are already defined 
in /usr/share/mk/sys.mk which is sourced by make automatically. See for
example 
/usr/src/usr.sbin/pkg_install/add/Makefile
to discover how little is needed.

-- 

Michel TALON

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-04 Thread Marin Atanasov

This time I need your help to help create my Makefile.
To be honest this will be my first Makefile and I'm not
very sure that it is correctly written although it builds fine.

PROG=pkg_add_it
SRCS=fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c
OBJS=fnode.o explode.o scan_directory.o scan_index_file.o pkg_add_it.o
CC=gcc
LD=gcc
CFLAGS=-g -Wall
LDFLAGS=
RM=/bin/rm -f

all: $(PROG)

$(PROG): $(OBJS)
   $(LD) $(LDFLAGS) $(OBJS) -o $(PROG)

%.o: %.c
   $(CC) $(CFLAGS) -c $<

clean:
   $(RM) $(PROG) $(OBJS)


Should I add something else to it or modify something?

Thanks!
Marin

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-04 Thread Romain Tartière
Hello

On Fri, Oct 03, 2008 at 10:24:37PM +0300, Marin Atanasov wrote:
> I was wondering how to create a man page for my program.
groff_mdoc(7) is probably what you are looking for... Having a look to
existing man pages is also really useful for seeing how things are done.

With kind regards,
Romain

-- 
Romain Tartière <[EMAIL PROTECTED]>http://romain.blogreen.org/
pgp: 8DAB A124 0DA4 7024 F82A  E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)


pgp03Rl9F8SCf.pgp
Description: PGP signature


Re: My interactive version of pkg_add - finished!

2008-10-03 Thread Lowell Gilbert
Marin Atanasov <[EMAIL PROTECTED]> writes:

> I was wondering how to create a man page for my program.
> I was looking over the web, and found similar questions already posted,
> but they all suggest that you take an existing copy of a man page and
> edit it for your needs. Isn't there a guide or something on how to
> create you own manual page for FreeBSD?

Sure, if that's the way you prefer to do it.  There's a template in
the manual for the nroff macro package.  I think mdoc is the usual
package (as opposed to man), so take a look at "man groff_mdoc".

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-03 Thread Marin Atanasov

Hi, list - it's me again :)

I was wondering how to create a man page for my program.
I was looking over the web, and found similar questions already posted,
but they all suggest that you take an existing copy of a man page and
edit it for your needs. Isn't there a guide or something on how to
create you own manual page for FreeBSD?

Thanks,
Marin

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-10-03 Thread Marin Atanasov

Michel Talon wrote:

Marcin Wisnicki wrote:

  

Unless I'm missing something there needs to be a MOVED file or ideally
something like it that has pkgnames (with versions) for a binary
package update tool to work.



First, congratulations to Marin Atanasov for having completed his
program! As far as i understand, Marin's goal was simpler that an
upgrade tool for binary packages, it was simply an install tool,
allowing to choose interactively on various repositories. I think this
goal is fulfilled and is useful. 


For upgrading, the situation is vastly more complicated, indeed one
needs to read MOVED and use information here, in particular follow the
name changes of ports. For example you may have a port whose proper
upgrade has a different name, etc. or ports have disappeared, etc.
I am not even sure that a completely bullet proof system can be written
within the limits of the present FreeBSD ports system. 


I am quite sure that one of the keys of Marcin's success is having
limited his aims. Similarly the excellent portmaster tool for upgrading
owes its success to strict limitation to upgrade from source, using the
available preexisting pkg_* tools - plus a lot of polishing.



  
Yeap, as Michel Talon noticed I'm not trying to create a package upgrade 
tool,
but just a tool for installing packages in an interactive manner. I 
think that

there are already enough and good package upgrade tools - portmaster for
example would do the job.

My program is designed to make easier the process of finding and install 
the packages.
I've written some functions which search for a file pattern when we are 
performing a
local and remote search - then the information is being stored in a 
stack and at the end
of the code we have a single system() call which executes `pkg_add 
[pkgname]'.
So if one have looked at the code will see that actually my program 
gives the
interactive interface and for installing - it uses the existing pkg_add 
tool.


Other pkg_* commands could be supported by the program, but I don't see 
a use of it - except maybe

the purpose mentioned above for a package upgrade tool.

Btw, what would you say about this name `pkg_add_it' - 'pkg_add 
Interactive Tool'? :)


Cheers,
Marin

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-10-02 Thread Michel Talon
Marcin Wisnicki wrote:

> Unless I'm missing something there needs to be a MOVED file or ideally
> something like it that has pkgnames (with versions) for a binary
> package update tool to work.

First, congratulations to Marin Atanasov for having completed his
program! As far as i understand, Marin's goal was simpler that an
upgrade tool for binary packages, it was simply an install tool,
allowing to choose interactively on various repositories. I think this
goal is fulfilled and is useful. 

For upgrading, the situation is vastly more complicated, indeed one
needs to read MOVED and use information here, in particular follow the
name changes of ports. For example you may have a port whose proper
upgrade has a different name, etc. or ports have disappeared, etc.
I am not even sure that a completely bullet proof system can be written
within the limits of the present FreeBSD ports system. 

I am quite sure that one of the keys of Marcin's success is having
limited his aims. Similarly the excellent portmaster tool for upgrading
owes its success to strict limitation to upgrade from source, using the
available preexisting pkg_* tools - plus a lot of polishing.



-- 

Michel TALON

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Garrett Cooper
On Wed, Oct 1, 2008 at 8:47 PM, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 1, 2008 at 3:18 PM, Marin Atanasov <[EMAIL PROTECTED]> wrote:
>> Alexander Churanov wrote:
>>>
>>> Marin,
>>>
>>> Let me suggest some names:
>>>
>>> 1) pkg_search
>>>
>>> 2) pkg_find
>>>
>>> 3) pkg_install
>>>
>>> 4) package-finder
>>>
>>> 5) package-installer
>>>
>>> 6) find-package
>>>
>>> 7) install-package
>>>
>>> 8) easy-install
>>>
>>> 9) interactive-install
>>>
>>> Alexander Churanov
>>>
>> Thank you for your support, folks!
>>
>> By tomorrow the program will be renamed (once again :)) and I'll start the
>> preparation of the port :)
>> For any other improve suggestions or feature requests - write back :)
>>
>> Cheers,
>> Marin
>
> Avoid 1-3 as they're already taken in one form or another.
>
> pkg_int_add or pkg_iadd?
>
> -Garrett

Avoid 8. too; it's a python tool.
-Garrett
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Garrett Cooper
On Wed, Oct 1, 2008 at 3:18 PM, Marin Atanasov <[EMAIL PROTECTED]> wrote:
> Alexander Churanov wrote:
>>
>> Marin,
>>
>> Let me suggest some names:
>>
>> 1) pkg_search
>>
>> 2) pkg_find
>>
>> 3) pkg_install
>>
>> 4) package-finder
>>
>> 5) package-installer
>>
>> 6) find-package
>>
>> 7) install-package
>>
>> 8) easy-install
>>
>> 9) interactive-install
>>
>> Alexander Churanov
>>
> Thank you for your support, folks!
>
> By tomorrow the program will be renamed (once again :)) and I'll start the
> preparation of the port :)
> For any other improve suggestions or feature requests - write back :)
>
> Cheers,
> Marin

Avoid 1-3 as they're already taken in one form or another.

pkg_int_add or pkg_iadd?

-Garrett
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Marin Atanasov

Alexander Churanov wrote:


Marin,

Let me suggest some names:

1) pkg_search

2) pkg_find

3) pkg_install

4) package-finder

5) package-installer

6) find-package

7) install-package

8) easy-install

9) interactive-install

Alexander Churanov


Thank you for your support, folks!

By tomorrow the program will be renamed (once again :)) and I'll start 
the preparation of the port :)

For any other improve suggestions or feature requests - write back :)

Cheers,
Marin

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Alexander Churanov
Marin,

Let me suggest some names:

1) pkg_search

2) pkg_find

3) pkg_install

4) package-finder

5) package-installer

6) find-package

7) install-package

8) easy-install

9) interactive-install

Alexander Churanov
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Marin Atanasov

Hans F. Nordhaug wrote:

Hm, isn't this a little too generic name? If this is an interactive
version of pkg_add maybe use name that makes that clear?

Hans

Disclaimer: I haven't tried your program/sit.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

  
Actually I haven't been thinking much how to name the program - and yes 
- it is a generic name.. Perhaps it will be changed as soon as I think 
of a good name :)


--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Hans F. Nordhaug
* Marin Atanasov <[EMAIL PROTECTED]> [2008-10-01]:
> Hi, again! :)
> 
> I've finished the new version of the program. I decided to name it `sit' 
> - Simple Interactive Tool
[cut]

Hm, isn't this a little too generic name? If this is an interactive
version of pkg_add maybe use name that makes that clear?

Hans

Disclaimer: I haven't tried your program/sit.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Marin Atanasov

Miroslav Lachman wrote:


It seems useful. I have one suggestion - make it as port and submit PR 
for adding it in to ports tree, so it will get wider audience :)


Miroslav Lachman

Will do that :) Maybe tomorrow I'll start making the port, because right 
now I have to study for my exams.
It seems that tomorrow I'll start reading the Porters Handbook first, 
since this will be my first port :)


--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add - finished!

2008-10-01 Thread Miroslav Lachman



Marin Atanasov wrote:

Hi, again! :)

I've finished the new version of the program. I decided to name it `sit' 
- Simple Interactive Tool


`sit' now supports the following:
-- improved code for dynamic memory allocation
-- local package pattern search
-- remote (ftp) package pattern search
-- command line arguments to specify a local or remote installation
-- uses some env variables like PACKAGEROOT, OSRELEASE and MACHTYPE to 
determite which package and from where to be installed


The remote/ftp package pattern search is done by searching the INDEX 
file for a pattern and extracting the needed information from it. The 
program uses a default values for these environment variables if they 
have not been set:


-- PACKAGEROOT = ftp://ftp.freebsd.org/
-- MACHTYPE = i386
-- OSRELEASE = 8-current

It doesn't have any requirements, so it should build and run on any 
system that has fetch and pkg_add support.


Screenshots of various usage of the program can be found in here:
http://unix-heaven.org/doc/sit/screenshots/

And the code is here:
http://unix-heaven.org/doc/sit/sit-0.2.5.tar.gz

Well, I hope someone finds it useful :)

P.S: If someone have any suggestions on how to improve it more - let me 
know :)


It seems useful. I have one suggestion - make it as port and submit PR 
for adding it in to ports tree, so it will get wider audience :)


Miroslav Lachman
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


My interactive version of pkg_add - finished!

2008-10-01 Thread Marin Atanasov

Hi, again! :)

I've finished the new version of the program. I decided to name it `sit' 
- Simple Interactive Tool


`sit' now supports the following:
-- improved code for dynamic memory allocation
-- local package pattern search
-- remote (ftp) package pattern search
-- command line arguments to specify a local or remote installation
-- uses some env variables like PACKAGEROOT, OSRELEASE and MACHTYPE to 
determite which package and from where to be installed


The remote/ftp package pattern search is done by searching the INDEX 
file for a pattern and extracting the needed information from it. The 
program uses a default values for these environment variables if they 
have not been set:


-- PACKAGEROOT = ftp://ftp.freebsd.org/
-- MACHTYPE = i386
-- OSRELEASE = 8-current

It doesn't have any requirements, so it should build and run on any 
system that has fetch and pkg_add support.


Screenshots of various usage of the program can be found in here:
http://unix-heaven.org/doc/sit/screenshots/

And the code is here:
http://unix-heaven.org/doc/sit/sit-0.2.5.tar.gz

Well, I hope someone finds it useful :)

P.S: If someone have any suggestions on how to improve it more - let me 
know :)


Cheers!

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-29 Thread Marcin Wisnicki
On Mon, Sep 29, 2008 at 04:08, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 28, 2008 at 2:28 PM, Marcin Wisnicki <[EMAIL PROTECTED]> wrote:
>> Would be nice if there was also INDEX.bz2.
>
> You'd need to talk to the release team about that if you don't agree
Indeed

> with that fact; INDEX.bz2 item is a portupgrade-ism, and has its own
> collection of drawbacks in addition to it's pro's.
>
>> Also to be able to write an effective pkg upgrade tool one would need
>> something like /usr/ports/MOVED.
>
> INDEX already addresses this.
>

Really? How?

[EMAIL PROTECTED]:/usr/ports> tail -1 MOVED
net/p5-Socket||2008-09-25|Removed because newer version is present inside perl5
[EMAIL PROTECTED]:/usr/ports> grep 'p5-Socket-[0-9]' INDEX-7
[EMAIL PROTECTED]:/usr/ports>

So how would one know that it is safe to remove p5-Socket without
consulting MOVED ?
Unless I'm missing something there needs to be a MOVED file or ideally
something like it that has pkgnames (with versions) for a binary
package update tool to work.

> FWIW, I'd get rid of the All/ indexing as it's just a mass
> conglomeration of all of the other categories.
> -Garrett
>
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-29 Thread Marin Atanasov

Garrett Cooper wrote:

Try fetch(3).

  
You can get all of this information, again, from INDEX with or without pkg_info.


-Garrett
  
Yes, I'll use fetch(3) - that's what I meant, probably I didn't explain 
it well that's why you've misunderstood me :)
Currently I'm writing the functions which will scan the INDEX file and 
I'll be ready soon with the next version of the program and it will be 
very nice if someone could try and test the code for bugs and etc..


Now I'll go back coding for a while and post back later :)

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-29 Thread Garrett Cooper
On Mon, Sep 29, 2008 at 4:39 AM, Marin Atanasov <[EMAIL PROTECTED]> wrote:
> Michel Talon wrote:
>
>> I can only concur with the suggestion you mention, exploring ftp sites
>> to discover what is available here. How to do that efficiently is
>> harder. Apparently "official" FreeBSD ftp sites have an INDEX of
>> available packages. I hope it is reliable. Then i suggest to download it
>> and work from that.
>
> Yes, that's the most reasonable approach. First I thought to write some
> functions using libcurl
> to fetch from and navigate the FTP server, but I think that it will be
> better if I stick to the main principle of
> developing in Unix - simple tools combined together to solve some complex
> task.
> That's why I think that if I keep the program's code as clean and simple as
> possible it would become a
> useful tool (maybe :)), so for downloading the INDEX file fetch would do the
> job :) After all the idea
> about the program was to provide some interactive interface to pkg_add, and
> not to rediscover the tools
> which are already in the base system :)

Try fetch(3).

> Anyway tomorrow (or today perhaps) I'll have a working version of the
> program which searches an FTP server for a given package pattern and I'll
> post back the code.

You can get all of this information, again, from INDEX with or without pkg_info.

-Garrett
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-29 Thread Marin Atanasov

Michel Talon wrote:

> I can only concur with the suggestion you mention, exploring ftp sites
> to discover what is available here. How to do that efficiently is
> harder. Apparently "official" FreeBSD ftp sites have an INDEX of
> available packages. I hope it is reliable. Then i suggest to download it
> and work from that.

Yes, that's the most reasonable approach. First I thought to write some 
functions using libcurl
to fetch from and navigate the FTP server, but I think that it will be 
better if I stick to the main principle of
developing in Unix - simple tools combined together to solve some 
complex task.
That's why I think that if I keep the program's code as clean and simple 
as possible it would become a
useful tool (maybe :)), so for downloading the INDEX file fetch would do 
the job :) After all the idea
about the program was to provide some interactive interface to pkg_add, 
and not to rediscover the tools

which are already in the base system :)

Anyway tomorrow (or today perhaps) I'll have a working version of the 
program which searches an FTP server for a given package pattern and 
I'll post back the code.


Cheers!

--
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-28 Thread Garrett Cooper
On Sun, Sep 28, 2008 at 2:28 PM, Marcin Wisnicki
<[EMAIL PROTECTED]> wrote:
> On Sat, 27 Sep 2008 21:11:27 -0700, Garrett Cooper wrote:
>
>> On Sat, Sep 27, 2008 at 7:02 AM, Michel Talon <[EMAIL PROTECTED]>
>> wrote:
>>> Marin Atanasov wrote:
>>>
 So what do you think - is it worth improving upon it or it's a waste
 of time?
 Thanks for any suggestions.
>>
>> INDEX is made available via to pkg_install within sysinstall and exists
>> on mirrors in the following location:
>>
>> ftp://ftp.freebsd.org/pub/FreeBSD/ports/${ARCH}/packages-${VERSION}/
> INDEX
>
> Would be nice if there was also INDEX.bz2.

You'd need to talk to the release team about that if you don't agree
with that fact; INDEX.bz2 item is a portupgrade-ism, and has its own
collection of drawbacks in addition to it's pro's.

> Also to be able to write an effective pkg upgrade tool one would need
> something like /usr/ports/MOVED.

INDEX already addresses this.

FWIW, I'd get rid of the All/ indexing as it's just a mass
conglomeration of all of the other categories.

-Garrett
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-28 Thread Marcin Wisnicki
On Sat, 27 Sep 2008 21:11:27 -0700, Garrett Cooper wrote:

> On Sat, Sep 27, 2008 at 7:02 AM, Michel Talon <[EMAIL PROTECTED]>
> wrote:
>> Marin Atanasov wrote:
>>
>>> So what do you think - is it worth improving upon it or it's a waste
>>> of time?
>>> Thanks for any suggestions.
> 
> INDEX is made available via to pkg_install within sysinstall and exists
> on mirrors in the following location:
> 
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/${ARCH}/packages-${VERSION}/
INDEX

Would be nice if there was also INDEX.bz2.

Also to be able to write an effective pkg upgrade tool one would need 
something like /usr/ports/MOVED.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-27 Thread Garrett Cooper
On Sat, Sep 27, 2008 at 7:02 AM, Michel Talon <[EMAIL PROTECTED]> wrote:
> Marin Atanasov wrote:
>
>> So what do you think - is it worth improving upon it or it's a waste of
>> time?
>> Thanks for any suggestions.
>
> I think it is worth improving and certainly not a waste of time.
> Each work which allows to use precompiled packages more efficiently
> in FreeBSD is very useful, in my opinion. While compiling ports
> is very fine on a server, where only a small number of ports are
> installed - and then the tool "portmaster" does that really
> wonderfully, looking at the other extreme, a desktop with around
> a thousand installed ports is better managed through precompiled
> packages. And, sorry, but portupgrade is not the solution to do that,
> either with the -P or -PP option.
>
> I can only concur with the suggestion you mention, exploring ftp sites
> to discover what is available here. How to do that efficiently is
> harder. Apparently "official" FreeBSD ftp sites have an INDEX of
> available packages. I hope it is reliable. Then i suggest to download it
> and work from that.
>
> Best regards
>
> --
>
> Michel TALON

INDEX is made available via to pkg_install within sysinstall and
exists on mirrors in the following location:

ftp://ftp.freebsd.org/pub/FreeBSD/ports/${ARCH}/packages-${VERSION}/INDEX

where ARCH can be:

- amd64
- sparc64
- i386
etc, etc

and version can be:

- 7-stable
- 7.0-release
- 8-current
etc, etc

Poking around: ftp://ftp.freebsd.org/pub/FreeBSD/ports will give you
the results you desire.

-Garrett
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: My interactive version of pkg_add

2008-09-27 Thread Michel Talon
Marin Atanasov wrote:

> So what do you think - is it worth improving upon it or it's a waste of
> time?
> Thanks for any suggestions.

I think it is worth improving and certainly not a waste of time.
Each work which allows to use precompiled packages more efficiently
in FreeBSD is very useful, in my opinion. While compiling ports
is very fine on a server, where only a small number of ports are
installed - and then the tool "portmaster" does that really
wonderfully, looking at the other extreme, a desktop with around
a thousand installed ports is better managed through precompiled
packages. And, sorry, but portupgrade is not the solution to do that,
either with the -P or -PP option.

I can only concur with the suggestion you mention, exploring ftp sites
to discover what is available here. How to do that efficiently is
harder. Apparently "official" FreeBSD ftp sites have an INDEX of
available packages. I hope it is reliable. Then i suggest to download it
and work from that.

Best regards

-- 

Michel TALON

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


My interactive version of pkg_add

2008-09-26 Thread Marin Atanasov
Hello everyone! :)

I have a program I wrote 1 or 2 days ago for a friend who was asking about
how to make pkg_add install a package from a specific local path and if
the package is not there then pkg_add should install it remotely (using
the -r option). Of course this is not a new pkg_add version - it's just an
interactive interface which uses pkg_add (pkg_info, pkg_delete could also
be used - in next version) to install a specific package.

The idea about the program is that you don't have to know the full name of
the package - you just choose a path to scan and a pattern, and the
program returns all matching entries of pattern, so this way you could
interactively choose which package to install.

I have some ideas in my mind which could be added to the program's
features. I am writing to you to find out will such a program would be
useful and worth improving it?

This is what I am planning to add as features in the next version
(suggestions are welcome):
-- Command Line Options(CLO) like (add, delete, info) allowing the program
to invoke a different pkg_* command and perform the action upon the chosen
package
-- CLO which tells the program to scan PKG_PATH first and then the
specified directory
-- an option to interactively set PACKAGEROOT and PACKAGESITE env vars if
they have not been set already in order to search PACKAGEROOT and
PACKAGESITE if no single matching pattern was found in the local path

-- Some guys from DaemonForums suggested that I could write a function
which does exactly what the local scan function does, but for an FTP
server - recursively searching an FTP server for a given pattern of a
package.

It doesn't have an official name already - so I named it smart_add - just
for now :)

Anyway, a screenshot of the program is available here:
http://www.unix-heaven.org/doc/smartadd.png

And here's the code of the program:
http://www.unix-heaven.org/doc/smartadd.tar.gz

So what do you think - is it worth improving upon it or it's a waste of time?
Thanks for any suggestions.


-- 
Marin Atanasov a.k.a DNAeon
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"