Create makefile package
-
Hello,
I am creating a custom package for pfSense, but I got stuck in building makefile. Could you help me with a good reference on how to build makefile?
Note: The only reference I found was but it didn't help much.
https://docs.netgate.com/pfsense/en/latest/development/package-port-directory-structure.html
-
Take a look at some real life example Makefiles here: https://github.com/pfsense/FreeBSD-ports/tree/devel/securitylink text. Scroll down until you find a series of directories beginning with the string
pfSense-pkg-*
. Those are pfSense GUI packages. Browse some of those directories and examine the content and how the files and directory are arranged. TheMakefile
is in the root of each package directory. You can look through it to see how it works.There is no step-by-step guide anywhere that I'm aware of. I think most of us that built packages for pfSense learned by doing and by using another package as an example to build from.
-
Thanks I'll take a look at this.
-
Can you tell me where I can find references to variables like these from makefile:
$ {WRKSRC}
$ {INSTALL_DATA}
$ {FILESDIR} -
@andresense said in Create makefile package:
Can you tell me where I can find references to variables like these from makefile:
$ {WRKSRC}
$ {INSTALL_DATA}
$ {FILESDIR}You need to research the format of FreeBSD Makefiles. Start here: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefiles.htmllink text.