I am trying to implement steps of quick porting http://www.freebsd.org/doc/en/books/porters-handbook/quick-porting.html
It says "First, get the original tarball and put it into DISTDIR, which defaults to /usr/ports/distfiles."
I have only 2 files in my application:
Question 1)
I created a tar ball of these files and I copied it to /usr/ports/distfiles/vecihi.tar.gz. But I didn't understand where Makefile, pkg-descr, pkg-plist files should be located? In tar ball or?
Makefile:
Quesion 2)
In which folder should I run commands shown as below for testing? Should I define these calls in Makefile?
Question3)
How can I generate vecihi.tbz? I don't want to compile custom application with ports. I just want to use pkg_add pkg_delete commands for custom vecihi.tbz package.
Or if I want to install with ports /usr/ports/games/vecihi if I run make install in /usr/ports/games/vecihi; I want to install only 2 files again.
Question4)
if I deinstall it I want to delete 1 file only: vecihibin. vecihi.conf shouldn't be erased. Can I do that?
It says "First, get the original tarball and put it into DISTDIR, which defaults to /usr/ports/distfiles."
I have only 2 files in my application:
Code:
/usr/local/bin/vecihibin
/usr/local/etc/vecihi.conf
Question 1)
I created a tar ball of these files and I copied it to /usr/ports/distfiles/vecihi.tar.gz. But I didn't understand where Makefile, pkg-descr, pkg-plist files should be located? In tar ball or?
Makefile:
Code:
# $FreeBSD$
PORTNAME= vecihi
PORTVERSION= 1.0b
CATEGORIES= games
MASTER_SITES= ftp://ftp.vecihi.com/contrib/
MAINTAINER= vecihi@vecihi.org
COMMENT= sleepy cat
MAN1= vecihi.1
MANCOMPRESSED= yes
USE_IMAKE= yes
.include <bsd.port.mk>
Quesion 2)
In which folder should I run commands shown as below for testing? Should I define these calls in Makefile?
Code:
make install
make package
make deinstall
pkg_add package-name
make deinstall
make reinstall
make package
make readme
Question3)
How can I generate vecihi.tbz? I don't want to compile custom application with ports. I just want to use pkg_add pkg_delete commands for custom vecihi.tbz package.
Or if I want to install with ports /usr/ports/games/vecihi if I run make install in /usr/ports/games/vecihi; I want to install only 2 files again.
Question4)
if I deinstall it I want to delete 1 file only: vecihibin. vecihi.conf shouldn't be erased. Can I do that?