-SUBDIRS = libbb libopkg tests src
+SUBDIRS = libbb libopkg src
HOST_CPU=@host_cpu@
BUILD_CPU=@build_cpu@
AM_CONFIG_HEADER(libopkg/config.h)
AC_CANONICAL_HOST
+AC_GNU_SOURCE
for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
hash_table.h \
includes.h \
opkg_conf.h \
- opkg.h \
opkg_message.h \
opkg_state.h \
nv_pair.h \
opkg_core_sources = args.c args.h \
user.c user.h
-opkg_libcore_sources = args.c args.h libopkg.c libopkg.h opkg.h\
+opkg_libcore_sources = args.c args.h libopkg.c libopkg.h\
user.c user.h opkg_state.c opkg_state.h
opkg_cmd_sources = opkg_cmd.c opkg_cmd.h \
opkg_configure.c opkg_configure.h \
#include <string.h>
#include <unistd.h>
-#include "opkg.h"
+#include "includes.h"
#include "config.h"
#include "args.h"
#include <string.h>
#include <stdlib.h>
-#include "opkg.h"
+#include "includes.h"
#include "opkg_message.h"
#include "conffile.h"
#define CONFFILE_H
#include "nv_pair.h"
-
typedef struct nv_pair conffile_t;
+#include "opkg_conf.h"
+
int conffile_init(conffile_t *conffile, const char *file_name, const char *md5sum);
void conffile_deinit(conffile_t *conffile);
int conffile_has_been_modified(struct opkg_conf *conf, conffile_t *conffile);
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "conffile_list.h"
#ifndef CONFFILE_LIST_H
#define CONFFILE_LIST_H
-#include "conffile.h"
#include "nv_pair_list.h"
typedef struct nv_pair_list_elt conffile_list_elt_t;
typedef struct nv_pair_list conffile_list_t;
+#include "conffile.h"
+
int conffile_list_init(conffile_list_t *list);
void conffile_list_deinit(conffile_list_t *list);
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <sys/types.h>
#include <sys/stat.h>
#ifndef INCLUDES_H
#define INCLUDES_H
+#include <config.h>
#include <stdio.h>
#if STDC_HEADERS
#endif
#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-/* XXX: What's the right way to pick up GNU's strndup declaration? */
-# if __GNUC__
-# define __USE_GNU 1
-# endif
# include <string.h>
-# undef __USE_GNU
#endif
#if HAVE_STRINGS_H
General Public License for more details.
*/
-#include "opkg.h"
#include "includes.h"
#include "libopkg.h"
#include "opkg_cmd.h"
#include "file_util.h"
-
+#include "opkg_message.h"
+#include "opkg_error.h"
opkg_status_callback opkg_cb_status = NULL;
opkg_list_callback opkg_cb_list = NULL;
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "nv_pair.h"
#include "str_util.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "nv_pair.h"
#include "void_list.h"
+++ /dev/null
-/* opkg.h - the itsy package management system
-
- Carl D. Worth
-
- Copyright (C) 2001 University of Southern California
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2, or (at
- your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-*/
-
-#ifndef OPKG_H
-#define OPKG_H
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "includes.h"
-#include "opkg_conf.h"
-#include "opkg_message.h"
-
-#include "opkg_error.h"
-#include "opkg_defines.h"
-#include "opkg_state.h"
-
-#endif
General Public License for more details.
*/
-#include <string.h>
-#include "opkg.h"
-#include <libgen.h>
-#include <glob.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <signal.h>
-#include <stdio.h>
+#include "includes.h"
#include <dirent.h>
+#include <glob.h>
#include "opkg_conf.h"
#include "opkg_cmd.h"
#include "file_util.h"
#include "str_util.h"
#include "libbb/libbb.h"
+#include "opkg_utils.h"
+#include "opkg_defines.h"
#include <fnmatch.h>
General Public License for more details.
*/
-#include <glob.h>
-
-#include "opkg.h"
+#include "includes.h"
#include "opkg_conf.h"
#include "xregex.h"
#include "file_util.h"
#include "str_util.h"
#include "xsystem.h"
+#include <glob.h>
+#include "opkg_defines.h"
+
static int opkg_conf_parse_file(opkg_conf_t *conf, const char *filename,
pkg_src_list_t *pkg_src_list,
typedef struct opkg_conf opkg_conf_t;
#include "hash_table.h"
-#include "opkg.h"
#include "args.h"
#include "pkg.h"
#include "pkg_hash.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "sprintf_alloc.h"
#include "opkg_configure.h"
#include "opkg_state.h"
#include <gpgme.h>
#endif
-#include "opkg.h"
+#include "includes.h"
#include "opkg_download.h"
#include "opkg_message.h"
#include "opkg_state.h"
#include "xsystem.h"
#include "file_util.h"
#include "str_util.h"
+#include "opkg_defines.h"
opkg_download_progress_callback opkg_cb_download_progress = NULL;
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include <dirent.h>
#include <glob.h>
#include "opkg_utils.h"
#include "opkg_message.h"
#include "opkg_state.h"
+#include "opkg_defines.h"
#include "sprintf_alloc.h"
#include "file_util.h"
#include "pkg.h"
#include "opkg_conf.h"
+#include "opkg_error.h"
opkg_error_t opkg_install_by_name(opkg_conf_t *conf, const char *pkg_name);
opkg_error_t opkg_install_multi_by_name(opkg_conf_t *conf, const char *pkg_name);
*/
-#include "opkg.h"
+#include "includes.h"
#include "opkg_conf.h"
#include "opkg_message.h"
#ifndef _OPKG_MESSAGE_H_
#define _OPKG_MESSAGE_H_
-#include "opkg.h"
#include "opkg_conf.h"
typedef enum {
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "opkg_message.h"
#include <glob.h>
#include "opkg_remove.h"
+#include "opkg_error.h"
+#include "opkg_state.h"
#include "file_util.h"
#include "sprintf_alloc.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "opkg_install.h"
#include "opkg_message.h"
General Public License for more details.
*/
-#include "opkg.h"
-
int opkg_upgrade_pkg(opkg_conf_t *conf, pkg_t *old);
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include <ctype.h>
#include <sys/vfs.h>
#define OPKG_UTILS_H
#include "pkg.h"
+#include "opkg_error.h"
void push_error_list(struct errlist **errors,char * msg);
void reverse_error_list(struct errlist **errors);
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <ctype.h>
#include <string.h>
#include <errno.h>
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include <ctype.h>
#include "pkg.h"
#include "pkg_hash.h"
+#include "includes.h"
enum depend_type {
PREDEPEND,
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "pkg_dest.h"
#include "file_util.h"
#include "str_util.h"
#include "sprintf_alloc.h"
+#include "opkg_state.h"
+#include "opkg_defines.h"
int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const char * lists_dir)
{
#ifndef PKG_DEST_H
#define PKG_DEST_H
+#include "includes.h"
+
typedef struct pkg_dest pkg_dest_t;
struct pkg_dest
{
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "pkg_dest.h"
#include "void_list.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include "pkg_extract.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include <ctype.h>
#include <stdlib.h>
#define PKG_HASH_H
#include "pkg.h"
+#include "pkg_src.h"
+#include "pkg_dest.h"
#include "pkg_vec.h"
#include "hash_table.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include <ctype.h>
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "pkg_src.h"
#include "str_util.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "pkg_src_list.h"
#include "void_list.h"
General Public License for more details.
*/
-#include <stdlib.h>
+#include "includes.h"
#include <fnmatch.h>
#include "xregex.h"
-#include "opkg.h"
#include "pkg.h"
+#include "opkg_message.h"
pkg_vec_t * pkg_vec_alloc(void)
{
typedef struct pkg pkg_t;
typedef struct abstract_pkg abstract_pkg_t;
+typedef struct pkg_vec pkg_vec_t;
+typedef struct abstract_pkg_vec abstract_pkg_vec_t;
+
+#include "opkg_conf.h"
struct pkg_vec
{
pkg_t **pkgs;
int len;
};
-typedef struct pkg_vec pkg_vec_t;
struct abstract_pkg_vec
{
abstract_pkg_t **pkgs;
int len;
};
-typedef struct abstract_pkg_vec abstract_pkg_vec_t;
pkg_vec_t * pkg_vec_alloc(void);
GNU General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <stdarg.h>
#include "sprintf_alloc.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "str_list.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
int str_starts_with(const char *str, const char *prefix)
{
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <errno.h>
#include "void_list.h"
GNU General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include "xregex.h"
General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <sys/wait.h>
#include "xsystem.h"