opkg: split out opkg.h
[oweals/opkg-lede.git] / libopkg / opkg_defines.h
1 /* opkg_defines.h - the opkg package management system
2
3    Copyright (C) 2008 OpenMoko Inc
4
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.
9
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.
14 */
15
16 #ifndef OPKG_DEFINES_H
17 #define OPKG_DEFINES_H
18
19 #define OPKG_PKG_EXTENSION ".ipk"
20 #define DPKG_PKG_EXTENSION ".deb"
21
22 #define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
23 #define OPKG_PKG_VERSION_SEP_CHAR '_'
24
25 #define OPKG_STATE_DIR_PREFIX OPKGLIBDIR"/opkg"
26 #define OPKG_LISTS_DIR_SUFFIX "lists"
27 #define OPKG_INFO_DIR_SUFFIX "info"
28 #define OPKG_STATUS_FILE_SUFFIX "status"
29
30 #define OPKG_BACKUP_SUFFIX "-opkg.backup"
31
32 #define OPKG_LIST_DESCRIPTION_LENGTH 128
33
34 #endif /* OPKG_DEFINES_H */