1 /* opkg_defines.h - the opkg package management system
3 Copyright (C) 2008 OpenMoko Inc
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2, or (at
8 your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
16 #ifndef OPKG_DEFINES_H
17 #define OPKG_DEFINES_H
19 #define OPKG_PKG_EXTENSION ".opk"
20 #define IPKG_PKG_EXTENSION ".ipk"
21 #define DPKG_PKG_EXTENSION ".deb"
23 #define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
24 #define OPKG_PKG_VERSION_SEP_CHAR '_'
26 #define OPKG_STATE_DIR_PREFIX OPKGLIBDIR"/opkg"
27 #define OPKG_LISTS_DIR_SUFFIX "lists"
28 #define OPKG_INFO_DIR_SUFFIX "info"
29 #define OPKG_STATUS_FILE_SUFFIX "status"
31 #define OPKG_BACKUP_SUFFIX "-opkg.backup"
33 #define OPKG_LIST_DESCRIPTION_LENGTH 128
35 #endif /* OPKG_DEFINES_H */