diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-09-01 12:46:05 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-09-01 12:46:05 +0000 |
commit | d6fe9fcb4c3ca8a6d825590bf513bae6d0a81e1f (patch) | |
tree | f8d0b7334b1cd7b2ea765abd1cdccd965ac4454a | |
parent | 8c3e4b2576fae10c60aaef6c224324a3f61c903b (diff) | |
download | wydawca-d6fe9fcb4c3ca8a6d825590bf513bae6d0a81e1f.tar.gz wydawca-d6fe9fcb4c3ca8a6d825590bf513bae6d0a81e1f.tar.bz2 |
Initial move from GSC
git-svn-id: file:///svnroot/wydawca/trunk@305 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 210 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | NEWS | 36 | ||||
-rw-r--r-- | README | 52 | ||||
-rw-r--r-- | README-alpha | 61 | ||||
-rw-r--r-- | README-hacking | 59 | ||||
-rw-r--r-- | acinclude.m4 | 57 | ||||
-rw-r--r-- | configure.ac | 139 | ||||
-rw-r--r-- | doc/Makefile.am | 42 | ||||
-rw-r--r-- | doc/fdl.texi | 450 | ||||
-rwxr-xr-x | doc/gendocs_template | 105 | ||||
-rw-r--r-- | doc/rendition.texi | 85 | ||||
-rw-r--r-- | doc/wydawca.texi | 871 | ||||
-rw-r--r-- | src/Makefile.am | 11 | ||||
-rw-r--r-- | src/config.c | 6 | ||||
-rw-r--r-- | src/directive.c | 6 | ||||
-rw-r--r-- | src/diskio.c | 6 | ||||
-rw-r--r-- | src/exec.c | 6 | ||||
-rw-r--r-- | src/gpg.c | 6 | ||||
-rw-r--r-- | src/mail.c | 6 | ||||
-rw-r--r-- | src/method.c | 6 | ||||
-rw-r--r-- | src/process.c | 6 | ||||
-rw-r--r-- | src/sql.c | 6 | ||||
-rw-r--r-- | src/triplet.c | 6 | ||||
-rw-r--r-- | src/verify.c | 6 | ||||
-rw-r--r-- | src/wydawca.c | 6 |
27 files changed, 2213 insertions, 42 deletions
@@ -0,0 +1 @@ | |||
Sergey Poznyakoff <gray@gnu.org.ua> | |||
diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..360b0ef --- /dev/null +++ b/ChangeLog | |||
@@ -0,0 +1,210 @@ | |||
1 | 2007-09-01 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | Moved to a separate repository. | ||
4 | |||
5 | |||
6 | 2007-08-26 Sergey Poznyakoff <gray@gnu.org.ua> | ||
7 | |||
8 | * src/wydawca.h (struct file_triplet): New member user | ||
9 | (fill_project_name): New function | ||
10 | * src/verify.c (get_project_name): Rename to | ||
11 | fill_project_name, remove static qualifier. | ||
12 | * src/wydawca.rc: Update | ||
13 | * src/mail.c (notify_owner): Notify only the submitter on | ||
14 | ev_success, ev_bad_directive_signature and | ||
15 | ev_bad_detached_signature (should it be made configurable?) | ||
16 | (notify): Call fill_project_name | ||
17 | * src/triplet.c (hash_triplet_free): Free trp->user | ||
18 | (expand_user_real_name, expand_user_email): Change data indices to | ||
19 | match those of project_owner_method. | ||
20 | |||
21 | Implement project owner notifications. | ||
22 | |||
23 | * src/wydawca.c (syslog_printer): Reduce the number of memory | ||
24 | reallocations | ||
25 | (make_stat_expansion): Update | ||
26 | * src/method.c: Implement a new framework: methods may return | ||
27 | 2-dimensional arrays of strings. | ||
28 | * src/sql.c, src/sql.h: Implement the new method framework. | ||
29 | * src/verify.c (expand_param): kw_expansion may provide | ||
30 | expansion functions. An additional argument supplies user-defined | ||
31 | data for expansions. | ||
32 | (escape_kwexp): Extern | ||
33 | (free_kwexp): Improve | ||
34 | (get_project_name): New function | ||
35 | (make_default_kwexp): New function | ||
36 | (check_access_rights): Call get_project_name. Use | ||
37 | make_default_kwexp to initialize expansions | ||
38 | (verify_directive_file): Use make_default_kwexp to initialize | ||
39 | expansions | ||
40 | * src/wydawca.h (NITEMS): New macro | ||
41 | (enum access_method_type): New members: ncol, nrow | ||
42 | (struct directory_pair): New members url,project_owner_method, | ||
43 | user_data_method | ||
44 | (struct file_info): Replace mtime, uid with struct stat sb | ||
45 | (struct file_triplet): New members project, dpair, user_data | ||
46 | (TRIPLET_UID): Take into account the changes to struct file_info | ||
47 | (enum notification_event): New data type | ||
48 | (notify_project_owner, notify_admin, notify): New functions | ||
49 | (struct kw_expansion): New members static_p, expand and data. | ||
50 | (escape_kwexp,make_default_kwexp): New proto | ||
51 | (expand_param): Change signature | ||
52 | (triplet_expand_param): New function | ||
53 | (method_result): Change prototype | ||
54 | (method_num_rows,method_num_cols): New functions | ||
55 | * src/config.c: New statements project-owner, user-data, | ||
56 | admin-address, mail-user, user-message | ||
57 | directory can take an optional argument specifying base URL for | ||
58 | notification messages | ||
59 | * src/gpg.c (verify_directive_signature): Expand directives | ||
60 | even if the signature does not match. Useful for notifications. | ||
61 | Add notifications. | ||
62 | * src/process.c: Add notifications. | ||
63 | * src/directive.c: Add notifications | ||
64 | * src/wydawca.rc: Update | ||
65 | * src/mail.c, src/mail.h: Implement project owner | ||
66 | notifications | ||
67 | * src/triplet.c (triplet_expand_param): New function | ||
68 | |||
69 | 2007-08-25 Sergey Poznyakoff <gray@gnu.org.ua> | ||
70 | |||
71 | * configure.ac: Require mailutils for wydawca | ||
72 | * bootstrap: Require inttostr and strftime | ||
73 | * src/mail.h: New file | ||
74 | * src/mail.c: New file | ||
75 | * src/Makefile.am: Add mail.c and mail.h | ||
76 | * src/wydawca.c: Include mail.h | ||
77 | (stat_mask_p, make_stat_expansion): New functions | ||
78 | (logstats): Call mail_stats | ||
79 | (main): Call initialize mailer subsystem | ||
80 | |||
81 | * src/sql.c, src/sql.h: Keep usage reference count. Do not | ||
82 | deinitialize unless it falls to 0. Do not initialize if it is > 0. | ||
83 | |||
84 | * src/verify.c (expand_param): Rewrite to allow long keywords | ||
85 | All callers updated. | ||
86 | * src/wydawca.h (struct access_method): Keep reference count | ||
87 | (struct directory_pair): verify_method and gpg_key_method are | ||
88 | pointers to structs. | ||
89 | (struct kw_expansion): kw is char* | ||
90 | (count_collected_triplets): New function | ||
91 | (method_new): New function | ||
92 | * src/config.c: reimplement verify-user and gpg-key | ||
93 | New keywords mailer, admin-address, from-address, mail-admin-stat | ||
94 | and admin-stat-message | ||
95 | * src/process.c: Close methods only when their reference count | ||
96 | is 0. | ||
97 | * src/method.c: Likewise. | ||
98 | (method_new): New function | ||
99 | * src/wydawca.rc: Update | ||
100 | * src/diskio.c: Minor changes | ||
101 | * src/triplet.c (count_collected_triplets): New function | ||
102 | |||
103 | * src/wydawca.c, src/config.c, src/gpg.c: New stat | ||
104 | types STAT_ACCESS_VIOLATIONS and STAT_BAD_SIGNATURES. | ||
105 | * src/wydawca.h (expand_param): New function | ||
106 | (struct kw_expansion): New data type | ||
107 | * src/verify.c (expand_param): Rewrite. | ||
108 | (verify_directive_file): Call check_access_rights. | ||
109 | |||
110 | 2007-08-24 Sergey Poznyakoff <gray@gnu.org.ua> | ||
111 | |||
112 | * src/Makefile.am, | ||
113 | lib/Makefile.am, jabberd/Makefile.am: Fix include dirs | ||
114 | * src/wydawca.c: Use gsc_version to display | ||
115 | program version. | ||
116 | * doc/gsc.texi: Update | ||
117 | * bootstrap: Add vasprintf | ||
118 | |||
119 | Implement final statistics. | ||
120 | |||
121 | * src/wydawca.c (log_to_stderr): Init to -1 (autodetect) | ||
122 | (wydawca_stat,syslog_include_prio,print_stats): New variables | ||
123 | (version): Update | ||
124 | (main): New options --cron, --syslog | ||
125 | Autodetect log_to_stderr value, unless set explicitly | ||
126 | (syslog_printer): Output priority string if requested by | ||
127 | syslog_include_prio | ||
128 | Print final statistics | ||
129 | (logmsg): Update statistics | ||
130 | (logstats): New function | ||
131 | * src/wydawca.h (enum wydawca_stat): New type | ||
132 | (STAT_MASK, STAT_MASK_NONE, STAT_MASK_ALL, UPDATE_STATS): New defines | ||
133 | (syslog_include_prio,wydawca_stat,print_stats): New globals | ||
134 | * src/config.c: New statements "syslog-print-priority" and | ||
135 | "statistics" | ||
136 | (get_backup_version): Fix handling of ARGMATCH result. | ||
137 | * src/directive.c: Update statistics | ||
138 | * src/diskio.c: Likewise | ||
139 | * src/triplet.c: Likewise | ||
140 | * src/wydawca.rc: Update | ||
141 | |||
142 | 2007-08-23 Sergey Poznyakoff <gray@gnu.org.ua> | ||
143 | |||
144 | Improve safety checks; implement symlink/rmsymlink/archive | ||
145 | directives; Fix directive signature verification. | ||
146 | |||
147 | 2007-08-22 Sergey Poznyakoff <gray@gnu.org.ua> | ||
148 | |||
149 | * src/exec.c: New file | ||
150 | * src/diskio.c, src/directive.c: Implement all directives | ||
151 | |||
152 | 2007-08-21 Sergey Poznyakoff <gray@gnu.org.ua> | ||
153 | |||
154 | * src/wydawca.c (usage): Update | ||
155 | New option --lint | ||
156 | (tar_command_name): New variable | ||
157 | * src/wydawca.h: include backupfile.h | ||
158 | (enum archive_type,struct archive_descr): New data types | ||
159 | (struct directory_pair.archive): New member | ||
160 | (safe_file_name): New function | ||
161 | (move_file): Redo prototype | ||
162 | (start_prog,log_output): New declarations | ||
163 | * src/config.c: Include argmatch.h | ||
164 | (safe_file_name): New function | ||
165 | (archive,umask,tar-program): New configuration file statemenst | ||
166 | * src/gpg.c (start_prog,log_output): Remove static qualifiers | ||
167 | * src/directive.c (process_directives): Update | ||
168 | * src/wydawca.rc: Update | ||
169 | * src/diskio.c (move_file): Implement archiving and backups | ||
170 | |||
171 | 2007-08-20 Sergey Poznyakoff <gray@gnu.org.ua> | ||
172 | |||
173 | * src/sql.c (trim_length): Move to verify.c | ||
174 | * src/verify.c (trim_length, trim) | ||
175 | (check_access_rights): New functions | ||
176 | (expand_param): Export | ||
177 | (verify_triplet): Call verify_directive_format and | ||
178 | check_access_rights | ||
179 | * src/wydawca.h (trim_length, trim, directive_parse) | ||
180 | (directive_get_value, directive_pack_version) | ||
181 | (directive_version_in_range_p, verify_directive_format) | ||
182 | (directive_first, directive_next, process_directives) | ||
183 | (create_directory, move_file): New functions | ||
184 | (MIN_DIRECTIVE_VERSION,MAX_DIRECTIVE_VERSION) | ||
185 | (MKDIR_PERMISSIONS,CREAT_PERMISSIONS): New defines | ||
186 | * src/gpg.c (wydawca_gpg_homedir): Return a meaningful value | ||
187 | (verify_directive_signature): Call directive_parse | ||
188 | * src/process.c (parse_file_name): Return void | ||
189 | * src/directive.c: New file | ||
190 | * src/diskio.c: New file | ||
191 | * src/triplet.c (triplet_processor): Call process_directives< |