We need new feature for pkg_create?
Boris Kovalenko
boris at ntmk.ru
Mon Feb 7 19:49:38 PST 2005
Johnny C. Lam wrote:
Hello!
I already have pkg-install which do all I need. INSTALL/DEINSTALL
script for pkg_add is created automaticaly by "make package" from my
pkg-install script. So, if I create my own INSTALL file, it will be
overwritted in process.
>
> You can create a .../quagga/INSTALL file that looks like (there's more
> to making a nice INSTALL script but the idea is there):
>
> #!/bin/sh
> case $2 in
> POST-INSTALL)
> [ -f /etc/rc.d/quagga ] ||
> cp ${PKG_PREFIX}/share/quagga/quagga.sh /etc/rc.d/quagga
> ;;
> esac
>
> and then also a DEINSTALL script that looks like:
>
> #!/bin/sh
> case $w in
> DEINSTALL)
> [ -f /etc/rc.d/quagga ] && rm -f /etc/rc.d/quagga
> ;;
> esac
>
> When this package is added with pkg_add, then the INSTALL script will be
> invoked as per the pkg_add man page, and will copy the rc.d script into
> place at post-install time. The DEINSTALL script will remove it during
> deinstallation.
>
> I hope this helps!
>
> Cheers,
>
> -- Johnny Lam <jlam at NetBSD.org>
>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
--
Regards,
Boris
More information about the freebsd-ports
mailing list