// Copyright (c) 2000-2002 by Per Liden #ifndef PKGADD_H #define PKGADD_H #include "pkgutil.h" #include #define PKGADD_CONF "/etc/pkgadd.conf" #define PKGADD_CONF_MAXLINE 1024 struct rule_t { enum { UPGRADE } event; string pattern; bool action; }; class pkgadd : public pkgutil { public: virtual int run(int argc, char** argv); protected: virtual const char* name() const { return "pkgadd"; } void print_help() const; private: vector read_config() const; set make_keep_list(const set& files, const vector& rules) const; }; #endif /* PKGADD_H */