Answer the question
In order to leave comments, you need to log in
Creating a FreeBSD Port
Actually how to create your own port in FreeBSD?
I read a lot of things, tried it, it does not work.
In this connection, a couple of questions appeared:
1. We write a program (for example, the banal "Hello world"). Do I need to compile it, or leave it as a source?
2. What exactly should be specified in the pkg-plist file?
"This lists all files installed by the port." those. indicate the place where it will be installed, or what we need to install?
3. In many directories with ports, there is a files directory, where the C sources are located. Should you do the same? (for example /usr/ports/www/apache22/files)
Maybe someone has come across this, please share your experience.
PS: Thank you all in advance.
Answer the question
In order to leave comments, you need to log in
1. I advise you to read the freebsd handbook, available in Russian. There is an agreement on the location of the files. binaries - there, source codes - there, documentation there, and, accordingly, follow the generally accepted principles of file organization.
2. There is also, for example, the official guide to creating ports www.freebsd.org/doc/ru/books/porters-handbook/
1.
There are ports, and there are packages - the first ones are in the source code, the second ones are binaries.
Just two different distribution methods.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question