/*
 * This file is part of DesktopBSD, see the README file.
 *
 * Author: Peter Hofer <ph@desktopbsd.net>
 *         (C) 2006
 *
 * Copyright: BSD, see the COPYING file included in this distribution
 *
 */

#ifndef __PKGCONSTANTS_H
#define __PKGCONSTANTS_H

#define PORTS_DIRECTORY			"/usr/ports/"
#define PACKAGES_DIRECTORY		(PORTS_DIRECTORY "packages/All/")
#define DISTFILES_DIRECTORY	(PORTS_DIRECTORY "distfiles/")
#define VUXML_DB_FILE			(PORTS_DIRECTORY "security/vuxml/vuln.xml")
#define UPDATING_FILE			(PORTS_DIRECTORY "UPDATING")

#define PORTAUDIT_DB_FILE		"/var/db/portaudit/auditfile.tbz"

#define PKGDB_DIRECTORY			"/var/db/pkg/"

#include <sys/param.h> /* __FreeBSD_version */

#if defined(__FreeBSD_version) && __FreeBSD_version >= 500036
#define FREEBSD_MAJOR_VERSION	((__FreeBSD_version >> 5) / 3125)
#else
#error "FreeBSD >= 5 required"
#endif

#define PORTSTOOLS_PREFIX	"/usr/local/"
#define PORTUPGRADE_CMD		(PORTSTOOLS_PREFIX "sbin/portupgrade")
#define PORTSCLEAN_CMD		(PORTSTOOLS_PREFIX "sbin/portsclean")
#define PORTSDB_CMD			(PORTSTOOLS_PREFIX "sbin/portsdb")
#define PKGDB_CMD				(PORTSTOOLS_PREFIX "sbin/pkgdb")
#define PKG_DEINSTALL_CMD	(PORTSTOOLS_PREFIX "sbin/pkg_deinstall")

#define PKG_INSTALL_PREFIX	"/usr/sbin/"
#define PKG_ADD_CMD			(PKG_INSTALL_PREFIX "pkg_add")
#define PKG_INFO_CMD			(PKG_INSTALL_PREFIX "pkg_info")

#define MAKE_CMD				"/usr/bin/make"

#define FASTEST_CVSUP_CMD	"/usr/local/bin/fastest_cvsup"

#define PORTAUDIT_CMD		"/usr/local/sbin/portaudit"

#endif /* __PKGCONSTANTS_H */
