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

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 bsd.port.subdir.mk
.include bsd.prog.mk

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 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 bsd.port.subdir.mk
.include bsd.prog.mk

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-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 - 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-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]


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

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

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 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 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]