Browse Source

Initial backbone's Portage tree.

Kolan Sh 6 years ago
commit
3b7d0b5466
43 changed files with 2401 additions and 0 deletions
  1. 3
    0
      app-cdr/mdf2iso/Manifest
  2. 661
    0
      app-cdr/mdf2iso/files/mdf2iso-0.3.0-bigfiles.patch
  3. 28
    0
      app-cdr/mdf2iso/mdf2iso-0.3.0-r1.ebuild
  4. 3
    0
      app-editors/oxygenxml/Manifest
  5. 51
    0
      app-editors/oxygenxml/oxygenxml-11.ebuild
  6. 3
    0
      app-misc/nixnote/Manifest
  7. 28
    0
      app-misc/nixnote/nixnote-1.2.ebuild
  8. 11
    0
      dev-util/colormake/ChangeLog
  9. 6
    0
      dev-util/colormake/Manifest
  10. 29
    0
      dev-util/colormake/colormake-0.2-r1.ebuild
  11. 62
    0
      dev-util/colormake/files/.svn/entries
  12. 20
    0
      dev-util/colormake/files/.svn/text-base/colormake-0.2-disable-broken-tagging.patch.svn-base
  13. 20
    0
      dev-util/colormake/files/colormake-0.2-disable-broken-tagging.patch
  14. 7
    0
      dev-util/colormake/files/colormake-0.2-save-pipe-exit-status.patch
  15. 5
    0
      dev-util/colormake/metadata.xml
  16. 28
    0
      games-strategy/0ad-data/0ad-data-11339_alpha9.ebuild
  17. 2
    0
      games-strategy/0ad-data/Manifest
  18. 132
    0
      games-strategy/0ad/0ad-10803.ebuild
  19. 110
    0
      games-strategy/0ad/0ad-11339_alpha9.ebuild
  20. 127
    0
      games-strategy/0ad/0ad-99999.ebuild
  21. 7
    0
      games-strategy/0ad/Manifest
  22. 26
    0
      games-strategy/0ad/files/11339_alpha9-fcollada-makefile.patch
  23. 3
    0
      media-tv/v4l2ucp/Manifest
  24. 19
    0
      media-tv/v4l2ucp/v4l2ucp-2.0.2.ebuild
  25. 4
    0
      net-fs/smbnetfs/Manifest
  26. 47
    0
      net-fs/smbnetfs/files/smbnetfs-0.5.3-0001-configure.in-allow-user-to-explicitly-enable-disable.patch
  27. 11
    0
      net-fs/smbnetfs/files/smbnetfs-reconfigure_file_modes.patch
  28. 46
    0
      net-fs/smbnetfs/smbnetfs-0.5.3-r99.ebuild
  29. 1
    0
      profiles/repo_name
  30. 51
    0
      www-servers/nginx/Manifest
  31. 81
    0
      www-servers/nginx/files/nginx-1.1.5-zero_filesize_check.patch
  32. 71
    0
      www-servers/nginx/files/nginx-r1
  33. 72
    0
      www-servers/nginx/files/nginx.conf-r4
  34. 71
    0
      www-servers/nginx/files/nginx.init-r2
  35. 11
    0
      www-servers/nginx/files/nginx.logrotate
  36. 24
    0
      www-servers/nginx/files/passenger-3.0.1-cflags.patch
  37. 12
    0
      www-servers/nginx/files/passenger-3.0.1-missing-include.patch
  38. 15
    0
      www-servers/nginx/files/passenger-CFLAGS.patch
  39. 407
    0
      www-servers/nginx/nginx-1.1.12.ebuild
  40. 2
    0
      x11-drivers/snail/Manifest
  41. 34
    0
      x11-drivers/snail/snail-1.2.6.ebuild
  42. 2
    0
      x11-themes/gtk-engines-equinox/Manifest
  43. 48
    0
      x11-themes/gtk-engines-equinox/gtk-engines-equinox-1.30.ebuild

+ 3
- 0
app-cdr/mdf2iso/Manifest View File

@@ -0,0 +1,3 @@
1
+AUX mdf2iso-0.3.0-bigfiles.patch 16865 RMD160 824ba97d51eaf07731cb0c786ac193b756a72dca SHA1 9189bf9886bd60e21cc915b1b0739c8fb9f92b33 SHA256 c26944eaba4b9ff4808ecfe3c46117d94f2ed6fbf3a95cebc88f952bd5b375b5
2
+DIST mdf2iso-0.3.0-src.tar.bz2 97723 RMD160 ffb295133265197846758ea6746711a260969cef SHA1 d424bd84a2c45834d7b7060306aa9ee1926c9215 SHA256 7b6622c58bc6a5111eba719d2b55cdfab54cbb26f3aea98b7e5db0eb0062be84
3
+EBUILD mdf2iso-0.3.0-r1.ebuild 662 RMD160 a145fb6fa556ca6213adb3fc602ab55ac26e7301 SHA1 bfa2bcc873090990289a1ebcbfa3bc6b198bf7bc SHA256 b5b79f0359da56dfdffe44ae3ea7a5f40f26efe0395442a256c6852e2a735959

+ 661
- 0
app-cdr/mdf2iso/files/mdf2iso-0.3.0-bigfiles.patch View File

@@ -0,0 +1,661 @@
1
+Only in mdf2iso/src: .deps
2
+Only in mdf2iso.new/src: .kdbgrc.mdf2iso
3
+diff -bur mdf2iso/src/Makefile.am mdf2iso.new/src/Makefile.am
4
+--- mdf2iso/src/Makefile.am	2005-05-19 11:24:11.000000000 +0200
5
++++ mdf2iso.new/src/Makefile.am	2005-07-31 17:47:36.000000000 +0200
6
+@@ -1,2 +1,3 @@
7
+ bin_PROGRAMS = mdf2iso
8
+ mdf2iso_SOURCES = mdf2iso.c
9
++AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall
10
+diff -bur mdf2iso/src/mdf2iso.c mdf2iso.new/src/mdf2iso.c
11
+--- mdf2iso/src/mdf2iso.c	2005-05-22 21:52:08.000000000 +0200
12
++++ mdf2iso.new/src/mdf2iso.c	2005-07-31 19:41:56.000000000 +0200
13
+@@ -1,4 +1,4 @@
14
+- /*  $Id: mdf2iso.c, 22/05/05 
15
++/*  $Id: mdf2iso.c, 22/05/05 
16
+ 
17
+     Copyright (C) 2004,2005 Salvatore Santagati <salvatore.santagati@gmail.com>   
18
+ 
19
+@@ -16,19 +16,14 @@
20
+     along with this program; if not, write to the                         
21
+     Free Software Foundation, Inc.,                                       
22
+     59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.        
23
+-  */
24
++*/
25
+ 
26
+ #include <stdio.h>
27
+ #include <stdlib.h>
28
+ #include <string.h>
29
+ #include <errno.h>
30
+ 
31
+-#define VERSION "0.3.0"
32
+-
33
+-/* Support Large File */
34
+-
35
+-#define _FILE_OFFSET_BITS 64
36
+-
37
++#define VERSION "0.3.1"
38
+ 
39
+ 
40
+ const char SYNC_HEADER[12] = { (char) 0x00,
41
+@@ -83,14 +78,21 @@
42
+   (char) 0x00
43
+ };
44
+ 
45
++#define ISO9660 0
46
++#define SYNC 1
47
++#define SYNC_MDF 2
48
++#define MDF_AUDIO 3
49
++#define UNKNOWN -1
50
+ 
51
+-void
52
+-toc_file (char *destfilename, int sub)
53
++int toc_file (char *destfilename, int sub)
54
+ {
55
+-  char destfiletoc[1024], destfiledat[1024];
56
++  int ret=0;
57
++  char *destfiletoc;
58
++  char *destfiledat;
59
+   FILE *ftoc;
60
+-  strcpy (destfiletoc, destfilename);
61
+-  strcpy (destfiledat, destfilename);
62
++  
63
++  destfiletoc=strdup(destfilename);
64
++  destfiledat=strdup(destfilename);
65
+   strcpy (destfiletoc + strlen (destfilename) - 4, ".toc");
66
+   strcpy (destfiledat + strlen (destfilename) - 4, ".dat");
67
+ 
68
+@@ -100,11 +102,8 @@
69
+       fprintf (ftoc, "// Track 1\n");
70
+       fprintf (ftoc, "TRACK MODE1_RAW");
71
+ 
72
+-      if (sub == 1)
73
+-	fprintf (ftoc, " RW_RAW\n");
74
+-
75
+-      else
76
+-	fprintf (ftoc, "\n");
77
++    if (sub == 1) fprintf (ftoc, " RW_RAW\n");
78
++    else fprintf (ftoc, "\n");
79
+ 
80
+       fprintf (ftoc, "NO COPY\n");
81
+       fprintf (ftoc, "DATAFILE \"%s\"\n", destfiledat);
82
+@@ -114,26 +113,27 @@
83
+     }
84
+   else
85
+     {
86
+-      printf ("%s\n", strerror (errno));
87
+-      exit (EXIT_FAILURE);
88
++    printf ("Error opening %s for output: %s\n",destfiletoc,strerror(errno));
89
++    ret=-1;
90
+     };
91
+-
92
++  free(destfiletoc);
93
++  free(destfiledat);
94
++  return ret;
95
+ }
96
+ 
97
+-int
98
+-number_file (char *destfilename)
99
++/*
100
++int number_file (char *destfilename)
101
+ {
102
+   int i = 1, test_mdf = 0;
103
+   int n_mdf;
104
+   char mdf[2], destfilemdf[2354];
105
+   FILE *fsource;
106
++  
107
+   strcpy (destfilemdf, destfilename);
108
+   strcpy (destfilemdf + strlen (destfilename) - 1, ".0");
109
+   for (i = 0; test_mdf == 0; i++)
110
+-
111
+     {
112
+       if ((fsource = fopen (destfilemdf, "rb")) != NULL)
113
+-
114
+ 	{
115
+ 	  printf ("\nCheck : ");
116
+ 	  sprintf (mdf, "md%d", i);
117
+@@ -141,203 +141,219 @@
118
+ 	  printf ("%s, ", destfilemdf);
119
+ 	  fclose (fsource);
120
+ 	}
121
+-
122
+       else
123
+ 	{
124
+ 	  test_mdf = 1;
125
+ 	}
126
+-    };
127
++  }
128
+   printf ("\r                                   \n");
129
+   n_mdf = i - 1;
130
+   return (n_mdf);
131
+ }
132
++*/
133
+ 
134
+-void
135
+-cuesheets (char *destfilename)
136
++int cuesheets (char *destfilename)
137
+ {
138
+-  char destfilecue[1024], destfilebin[1024];
139
++  int ret=0;
140
++  char *destfilecue;
141
++  char *destfilebin;
142
+   FILE *fcue;
143
+-  strcpy (destfilecue, destfilename);
144
+-  strcpy (destfilebin, destfilename);
145
++  
146
++  destfilecue=strdup(destfilename);
147
++  destfilebin=strdup(destfilename);
148
+   strcpy (destfilecue + strlen (destfilename) - 4, ".cue");
149
+   strcpy (destfilebin + strlen (destfilename) - 4, ".bin");
150
+-  fcue = fopen (destfilecue, "w");
151
++  if ((fcue = fopen (destfilecue, "w"))!=NULL)
152
++  {
153
+   fprintf (fcue, "FILE \"%s\" BINARY\n", destfilebin);
154
+   fprintf (fcue, "TRACK 1 MODE1/2352\n");
155
+   fprintf (fcue, "INDEX 1 00:00:00\n");
156
+   rename (destfilename, destfilebin);
157
+   printf ("Create Cuesheets : %s\n", destfilecue);
158
+   fclose (fcue);
159
++  }
160
++  else
161
++  {
162
++    printf ("Error opening %s for output: %s\n",destfilecue,strerror(errno));
163
++    ret=-1;
164
++  }
165
++  return ret;
166
+ }
167
+ 
168
+-void
169
+-main_percent (int percent_bar)
170
++int previous_percent=-1;
171
++void main_percent (int percent_bar)
172
++// Prints a progress bar, takes a percentage as argument.
173
+ {
174
+-  int progress_bar, progress_space;
175
++  //int progress_bar, progress_space;
176
++ 
177
++  if (percent_bar==previous_percent) return;  // Nothing changed, don't waste CPU cycles.
178
++  
179
++  printf("%3d%% [:%.*s>%.*s:]\r",percent_bar,20-(percent_bar/5),"                    ",
180
++                                                  percent_bar/5,"====================");
181
++  /*
182
+   printf ("%d%% [:", percent_bar);
183
+-  for (progress_bar = 1; progress_bar <= (int) (percent_bar / 5);
184
+-       progress_bar++)
185
++  for (progress_bar = 1; progress_bar <= (int) (percent_bar / 5); progress_bar++)
186
+     printf ("=");
187
+   printf (">");
188
+ 
189
+-  for (progress_space = 0; progress_space < (20 - progress_bar);
190
+-       progress_space++)
191
+-    printf (" ");
192
++  for (; progress_bar <= 20; ++progress_bar) printf (" ");
193
+   printf (":]\r");
194
++  */
195
+ }
196
+ 
197
+-void
198
+-usage ()
199
++void usage ()
200
++// Prints the command line syntax
201
+ {
202
+-  printf ("mdf2iso v%s by Salvatore Santagati\n", VERSION);
203
+-  printf ("Web     : http//mdf2iso.berlios.de\n");
204
+-  printf ("Email   : salvatore.santagati@gmail.com\n");
205
+-  printf ("Irc     : irc.freenode.net #ignus\n");
206
+-  printf ("Note	: iodellavitanonhocapitouncazzo\n");
207
+-  printf ("License : released under the GNU GPL v2 or later\n\n");
208
++  printf (" Web     : http//mdf2iso.berlios.de\n");
209
++  printf (" Email   : salvatore.santagati@gmail.com\n");
210
++  printf (" Irc     : irc.freenode.net #ignus\n");
211
++  printf (" Note    : iodellavitanonhocapitouncazzo\n\n");
212
+   printf ("Usage :\n");
213
+-  printf ("mdf2iso [OPTION] [BASENAME.MDF] [DESTINATION]\n\n");
214
+-  printf ("OPTION\n");
215
+-  printf ("\t--toc    Generate toc file\n");
216
+-  printf ("\t--cue    Generate cue file\n");
217
+-  printf ("\t--help   display this notice\n\n");
218
++  printf ("mdf2iso [--cue|--toc|--help] <sourcefile> [destfile]\n\n");
219
++  printf ("Options:\n");
220
++  printf ("  --toc    Generate toc/dat files\n");
221
++  printf ("  --cue    Generate cue/bin files\n");
222
++  printf ("  --help   Display this notice\n");
223
++  printf (" sourcefile\tFilename of the .mdf file to be converted\n");
224
++  printf (" destfile\tFilename of the target ISO9660 file.\n"\
225
++          "\t\tIf none given, one is derived from sourcefile.\n\n");
226
+ }
227
+ 
228
+-int
229
+-main (int argc, char **argv)
230
++char mdftype(FILE *f)
231
++/* returns 
232
++   -1 for unknown
233
++   0 for ISO9660
234
++   1 for SYNC
235
++   2 for SYNC MDF
236
++   3 for MDF Audio
237
++   (see #defines above)
238
++*/
239
+ {
240
+-  int seek_ecc, sector_size, seek_head, sector_data, n_mdf;
241
++  char buf[12];
242
++  
243
++  fseek(f, 32768, SEEK_SET);
244
++  fread(buf, sizeof (char), 8, f);
245
++  if (!memcmp (ISO_9660, buf, 8)) return ISO9660; // File is ISO9660
246
++  
247
++  fseek(f, 0L, SEEK_SET);
248
++  fread(buf, sizeof (char), 12, f);
249
++  
250
++  fseek (f, 2352, SEEK_SET);
251
++  
252
++  if (!memcmp (SYNC_HEADER, buf, 12))  // Has SYNC_HEADER
253
++  {
254
++    fread (buf, sizeof (char), 12, f);
255
++    if (!memcmp (SYNC_HEADER_MDF, buf, 12)) return SYNC_MDF;   // File is SYNC MDF
256
++    if (!memcmp (SYNC_HEADER, buf, 12)) return SYNC;       // File is SYNC
257
++  }
258
++  else  // Does not have SYNC_HEADER
259
++  {
260
++    fread(buf, sizeof (char), 12, f);
261
++    if (!memcmp (SYNC_HEADER_MDF_AUDIO, buf, 12)) return MDF_AUDIO; // File is MDF Audio
262
++  }
263
++
264
++  // Reached a point where nothing else matters.  
265
++  return UNKNOWN;  // Unknown format
266
++}
267
++
268
++
269
++// === Main program code ===
270
++
271
++int main (int argc, char **argv)
272
++{
273
++  int seek_ecc, sector_size, seek_head, sector_data;//, n_mdf;
274
+   int cue = 0, cue_mode = 0, sub = 1, toc = 0, sub_toc = 0;
275
+   int opts = 0;
276
+-  double size_iso, write_iso;
277
+-  long percent = 0;
278
+-  long i, source_length, progressbar;
279
+-  char buf[2448], destfilename[2354];
280
++  long i, source_length;
281
++  char buf[2448];
282
++  char *destfilename=NULL;
283
++  char *basefilename=NULL;
284
+   FILE *fdest, *fsource;
285
+ 
286
++  // Print identification
287
++  printf ("mdf2iso v%s by Salvatore Santagati\n", VERSION);
288
++  printf ("Licensed under GPL v2 or later\n");
289
+ 
290
+-  if (argc < 2)
291
+ 
292
++  // *** Process command line options ***
293
++  
294
++  if (argc < 2)
295
+     {
296
+-      usage ();
297
+-      exit (EXIT_FAILURE);
298
++    // Not enough parameters; print help
299
++    usage();
300
++    exit(EXIT_FAILURE);
301
+     }
302
+ 
303
+-  else
304
+-
305
+-    {
306
++  // Search for options --cue and --toc
307
+       for (i = 0; i < argc; i++)
308
+-
309
+ 	{
310
+-
311
+ 	  if (!strcmp (argv[i], "--help"))
312
+-
313
+ 	    {
314
+ 	      usage ();
315
+ 	      exit (EXIT_SUCCESS);
316
+ 	    }
317
+ 	  if (!strcmp (argv[i], "--cue"))
318
+-
319
+ 	    {
320
+ 	      cue = 1;
321
+ 	      opts++;
322
+ 	    }
323
+ 	  if (!strcmp (argv[i], "--toc"))
324
+-
325
+ 	    {
326
+ 	      toc = 1;
327
+ 	      opts++;
328
+ 	    }
329
+ 	}
330
+ 
331
+-      if ((cue == 1) && (toc == 1))
332
+-
333
+-	{
334
+-	  usage ();
335
+-	  exit (EXIT_FAILURE);
336
+-	}
337
+-      if ((opts == 1) && (argc <= 2))
338
+-
339
++  // Catch impossible parameter combinations
340
++  if (((cue == 1) && (toc == 1)) ||
341
++     ((opts == 1) && (argc <= 2)))
342
+ 	{
343
+-	  usage ();
344
+-	  exit (EXIT_FAILURE);
345
++    usage();
346
++    exit(EXIT_FAILURE);
347
+ 	}
348
+ 
349
++  // Get the base filename
350
++  basefilename=argv[1+opts];  // simple pointer, but makes life easier.
351
+ 
352
++  // Get the destination filename
353
+       if (argc >= (3 + opts))
354
+-	strcpy (destfilename, argv[2 + opts]);
355
+-
356
+-      else
357
+-
358
+-	{
359
+-	  strcpy (destfilename, argv[1 + opts]);
360
+-	  if (strlen (argv[1 + cue]) < 5
361
+-	      || strcmp (destfilename + strlen (argv[1 + opts]) - 4, ".mdf"))
362
+-	    strcpy (destfilename + strlen (argv[1 + opts]), ".iso");
363
+-
364
++    // The destination filename is explicitly entered at the prompt
365
++    destfilename=strdup(argv[2 + opts]);
366
+ 	  else
367
+-	    strcpy (destfilename + strlen (argv[1 + opts]) - 4, ".iso");
368
+-	}
369
+-      if ((fsource = fopen (argv[1 + opts], "rb")) != NULL)
370
+-
371
+ 	{
372
+-	  fseek (fsource, 32768, SEEK_CUR);
373
+-	  fread (buf, sizeof (char), 8, fsource);
374
+-	  if (memcmp (ISO_9660, buf, 8))
375
+-
376
++    // Derive destination filename from the basename:
377
++    //  If basename is "*.mdf" use "*.iso" als destname
378
++    //  otherwise simply append ".iso" to the basename to create destname.
379
++    destfilename=strdup(basefilename);
380
++    i=strlen(destfilename);  // Reusing 'i' here as temporary variable
381
++    if (i < 5 || strcmp(destfilename + i - 4, ".mdf"))
382
+ 	    {
383
+-	      fseek (fsource, 0L, SEEK_SET);
384
+-	      fread (buf, sizeof (char), 12, fsource);
385
+-	      if (!memcmp (SYNC_HEADER, buf, 12))
386
+-
387
+-		{
388
+-		  fseek (fsource, 0L, SEEK_SET);
389
+-		  fseek (fsource, 2352, SEEK_CUR);
390
+-		  fread (buf, sizeof (char), 12, fsource);
391
+-		  if (!memcmp (SYNC_HEADER_MDF, buf, 12))
392
+-
393
+-		    {
394
+-		      if (cue == 1)
395
+-			{
396
+-			  cue_mode = 1;
397
+-
398
+-			  /* BAD SECTOR TO NORMAL IMAGE */
399
+-			  seek_ecc = 96;
400
+-			  sector_size = 2448;
401
+-			  sector_data = 2352;
402
+-			  seek_head = 0;
403
+-			}
404
+-
405
+-		      else if (toc == 0)
406
+-
407
+-			{
408
+-
409
+-			  /*BAD SECTOR */
410
+-			  seek_ecc = 384;
411
+-			  sector_size = 2448;
412
+-			  sector_data = 2048;
413
+-			  seek_head = 16;
414
++      destfilename=realloc(destfilename,i+5); 
415
++      strcat(destfilename, ".iso");
416
+ 			}
417
+-
418
+ 		      else
419
+-
420
+-			{
421
+-
422
+-			  /*BAD SECTOR */
423
+-			  seek_ecc = 0;
424
+-			  sector_size = 2448;
425
+-			  sector_data = 2448;
426
+-			  seek_head = 0;
427
+-			  sub_toc = 1;
428
+-			}
429
++      strcpy(destfilename + i - 3, "iso");
430
+ 		    }
431
+ 
432
+-		  else
433
++  // *** Preprocess basefile ***
434
+ 
435
++  // Try opening basefile
436
++  if ((fsource = fopen(basefilename, "rb")) == NULL)
437
+ 		    {
438
+-		      if (!memcmp (SYNC_HEADER, buf, 12))
439
++    free(destfilename);
440
++    printf ("Could not open %s: %s\n", basefilename, strerror(errno));
441
++    exit (EXIT_FAILURE);
442
++  }
443
+ 
444
++  // Determine filetype & set some stuff accordingly (or exit)
445
++  switch (mdftype(fsource))
446
+ 			{
447
++    case ISO9660:
448
++            printf("%s is already ISO9660.\n",basefilename);
449
++            fclose(fsource);
450
++            free(destfilename);
451
++            exit(EXIT_SUCCESS);
452
++    case SYNC: 
453
+ 			  if (cue == 1)
454
+ 			    {
455
+ 			      cue_mode = 1;
456
+@@ -348,129 +364,134 @@
457
+ 			      seek_head = 0;
458
+ 			    }
459
+ 			  if (toc == 0)
460
+-
461
+ 			    {
462
+-
463
+ 			      /*NORMAL IMAGE */
464
+ 			      seek_ecc = 288;
465
+ 			      sector_size = 2352;
466
+ 			      sector_data = 2048;
467
+ 			      seek_head = 16;
468
+ 			    }
469
+-
470
+ 			  else
471
+-
472
+ 			    {
473
+ 			      seek_ecc = 0;
474
+ 			      sector_size = 2352;
475
+ 			      sector_data = 2352;
476
+ 			      seek_head = 0;
477
+ 			    }
478
+-			}
479
+-
480
+-		      else
481
+-
482
+-			{
483
+-			  printf ("Sorry I don't know this format :(\n");
484
+-			  exit (EXIT_FAILURE);
485
+-			}
486
+-		    }
487
+-		}
488
+-
489
+-	      else
490
+-
491
++            break;
492
++    case SYNC_MDF:
493
++            if (cue == 1)
494
+ 		{
495
+-		  fseek (fsource, 0L, SEEK_SET);
496
+-		  fseek (fsource, 2352, SEEK_CUR);
497
+-		  fread (buf, sizeof (char), 12, fsource);
498
+-		  if (memcmp (SYNC_HEADER_MDF_AUDIO, buf, 12))
499
++              cue_mode = 1;
500
+ 
501
++              /* BAD SECTOR TO NORMAL IMAGE */
502
++              seek_ecc = 96;
503
++              sector_size = 2448;
504
++              sector_data = 2352;
505
++              seek_head = 0;
506
++            }
507
++            else if (toc == 0)
508
+ 		    {
509
+-		      printf ("Sorry I don't know this format :(\n");
510
+-		      exit (EXIT_FAILURE);
511
++              /*BAD SECTOR */
512
++              seek_ecc = 384;
513
++              sector_size = 2448;
514
++              sector_data = 2048;
515
++              seek_head = 16;
516
+ 		    }
517
+-
518
+ 		  else
519
+-
520
+ 		    {
521
+-
522
++              /*BAD SECTOR */
523
++              seek_ecc = 0;
524
++              sector_size = 2448;
525
++              sector_data = 2448;
526
++              seek_head = 0;
527
++              sub_toc = 1;
528
++            }
529
++            break;
530
++    case MDF_AUDIO:
531
+ 		      /*BAD SECTOR AUDIO */
532
+ 		      seek_head = 0;
533
+ 		      sector_size = 2448;
534
+ 		      seek_ecc = 96;
535
+ 		      sector_data = 2352;
536
+ 		      cue = 0;
537
++            break;
538
++    default:printf("Unknown format for %s.\n",basefilename);
539
++            fclose(fsource);
540
++            free(destfilename);
541
++            exit (EXIT_FAILURE);
542
+ 		    }
543
+-		}
544
+-	      if ((fdest = fopen (destfilename, "wb")) != NULL);
545
+ 
546
+-	      else
547
++  //  *** Create destination file ***
548
++    
549
++  // Try opening the destination file for output
550
++  if ((fdest = fopen (destfilename, "wb")) == NULL)
551
+ 		{
552
+-		  printf ("%s\n", strerror (errno));
553
++    printf ("Unable to open %s for output: %s\n",destfilename,strerror(errno));
554
++    free(destfilename);
555
++    fclose(fsource);
556
+ 		  exit (EXIT_FAILURE);
557
+-		};
558
++  }
559
++
560
++    
561
+ 	      fseek (fsource, 0L, SEEK_END);
562
+ 	      source_length = ftell (fsource) / sector_size;
563
+-	      size_iso = (int) (source_length * sector_data);
564
+-	      progressbar = 100 / source_length;
565
+ 	      fseek (fsource, 0L, SEEK_SET);
566
+-
567
+ 	      {
568
+ 		for (i = 0; i < source_length; i++)
569
+-
570
+ 		  {
571
+ 		    fseek (fsource, seek_head, SEEK_CUR);
572
+-		    if (fread (buf, sizeof (char), sector_data, fsource));
573
+-
574
+-		    else
575
++      if (fread(buf, sizeof (char), sector_data, fsource)!=sector_data)
576
+ 		      {
577
+-			printf ("%s\n", strerror (errno));
578
++        printf ("Error reading from %s: %s\n",basefilename, strerror (errno));
579
++        fclose(fsource);
580
++        fclose(fdest);
581
++        remove(destfilename);
582
++        free(destfilename);
583
+ 			exit (EXIT_FAILURE);
584
+-		      };
585
+-		    if (fwrite (buf, sizeof (char), sector_data, fdest));
586
+-
587
+-		    else
588
++      }
589
++      if (fwrite (buf, sizeof (char), sector_data, fdest)!=sector_data)
590
+ 		      {
591
+-			printf ("%s\n", strerror (errno));
592
++        printf ("Error writing to %s: %s\n",destfilename, strerror (errno));
593
++        fclose(fsource);
594
++        fclose(fdest);
595
++        remove(destfilename);
596
++        free(destfilename);
597
+ 			exit (EXIT_FAILURE);
598
+-		      };
599
++      }
600
+ 		    fseek (fsource, seek_ecc, SEEK_CUR);
601
+-		    write_iso = (int) (sector_data * i);
602
+-		    if (i != 0)
603
+-		      percent = (int) (write_iso * 100 / size_iso);
604
+-		    main_percent (percent);
605
+-	      }} printf ("100%%[:====================:]\n");
606
++      main_percent(i*100/source_length);
607
++    }
608
++  } printf ("100%% [:=====================:]\n");
609
+ 
610
+ 	      fclose (fsource);
611
+ 	      fclose (fdest);
612
+ 
613
+-	      if (cue == 1)
614
+-		cuesheets (destfilename);
615
+-	      if (toc == 1)
616
+-		toc_file (destfilename, sub_toc);
617
++  // *** create Toc or Cue file is requested ***
618
++  if (cue == 1) if (cuesheets(destfilename))
619
++  {
620
++    free(destfilename);
621
++    exit(EXIT_FAILURE);
622
++  }
623
++  if (toc == 1) if (toc_file(destfilename, sub_toc))
624
++  {
625
++    free(destfilename);
626
++    exit(EXIT_FAILURE);
627
++  }
628
+ 	      if ((toc == 0) && (cue == 0))
629
+-		printf ("Create iso9660: %s\n", destfilename);
630
++    printf("Created iso9660: %s\n", destfilename);
631
++
632
++  free(destfilename);
633
+ 
634
+ 	      exit (EXIT_SUCCESS);
635
+-	    }
636
+ 
637
+-	  else
638
+-	    printf ("This is file iso9660 ;)\n");
639
++/*
640
+ 	  n_mdf = number_file (destfilename) - 1;
641
+-	  /* if (n_mdf > 1)
642
+-
643
++  / * if (n_mdf > 1) 
644
+ 	     {
645
+ 	     printf ("\rDetect %d md* file and now emerge this\n", n_mdf);
646
+ 	     }
647
+-	   */
648
++  * /
649
+ 	  fclose (fsource);
650
+-	  exit (EXIT_SUCCESS);
651
+-	}
652
+-
653
+-      else
654
+-	{
655
+-	  printf ("%s\n", strerror (errno));
656
+-	  exit (EXIT_FAILURE);
657
+-	};
658
+-    }
659
++  exit (EXIT_SUCCESS);*/
660
+ }
661
+

+ 28
- 0
app-cdr/mdf2iso/mdf2iso-0.3.0-r1.ebuild View File

@@ -0,0 +1,28 @@
1
+# Copyright 1999-2008 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/mdf2iso/Attic/mdf2iso-0.3.0-r1.ebuild,v 1.8 2009/12/01 19:54:35 vostorga dead $
4
+
5
+inherit autotools eutils
6
+
7
+DESCRIPTION="Alcohol 120% bin image to ISO image file converter"
8
+HOMEPAGE="http://mdf2iso.berlios.de/"
9
+SRC_URI="mirror://berlios/${PN}/${P}-src.tar.bz2"
10
+
11
+LICENSE="GPL-2"
12
+SLOT="0"
13
+KEYWORDS="amd64 ppc x86"
14
+IUSE=""
15
+
16
+S=${WORKDIR}/${PN}
17
+
18
+src_unpack() {
19
+	unpack ${A}
20
+	cd "${S}"
21
+	epatch "${FILESDIR}"/${P}-bigfiles.patch
22
+	eautoreconf
23
+}
24
+
25
+src_install() {
26
+	dobin src/${PN} || die "dobin failed."
27
+	dodoc ChangeLog
28
+}

+ 3
- 0
app-editors/oxygenxml/Manifest View File

@@ -0,0 +1,3 @@
1
+DIST oxygen.tar.gz 89540486 RMD160 838899d5b2e25327952832831472d0bd58c18140 SHA1 22cca9bc010a74f1a116b9985f1f6b83851b2ed7 SHA256 a5f81640f8e992b31caf3e728dc0597e1bc7ff50f3cb1861ac7093338ff4501e
2
+EBUILD oxygenxml-11.ebuild 1518 RMD160 6901517f289f9c7e483a18168d764d0b2d682cb7 SHA1 3c12adc768ba5a255319ca089b9eb7fbd0f51841 SHA256 718f7e6c074fd5bad19a2ca689c22ce7e563761a15fd39233e102d98f771bee5
3
+MISC Manifest.bkp 424 RMD160 24b4ff8263172c2dcbe0aff71db6673322771d30 SHA1 b6ce98b4f030a468a5f5e1a7c64d01b83214b0ea SHA256 12020647bc1a1a1aa6e76c5c8881e97ca0a454863d51f3369774c71a0f2fee74

+ 51
- 0
app-editors/oxygenxml/oxygenxml-11.ebuild View File

@@ -0,0 +1,51 @@
1
+# Copyright 1999-2007 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: Ilya Kashirin (seclorum@seclorum.ru)
4
+
5
+EAPI=2
6
+
7
+inherit eutils
8
+
9
+DESCRIPTION="Oxygen XML Editor is a complete cross platform XML editor providing the tools for XML authoring, XML conversion, XML Schema, DTD, Relax NG and Schematron development, XPath, XSLT, XQuery debugging, SOAP and WSDL testing."
10
+HOMEPAGE="http://oxygenxml.com"
11
+SRC_URI="http://mirror.oxygenxml.com/InstData/Editor/All/oxygen.tar.gz -> oxygen.tar.gz"
12
+
13
+LICENSE="Oxygen"
14
+SLOT="0"
15
+KEYWORDS="~x86"
16
+IUSE=""
17
+DEPEND=">=dev-java/sun-jdk-1.6"
18
+
19
+INSTALL_DIR="/opt/${PN}"
20
+S=${WORKDIR}/oxygen
21
+
22
+src_unpack () {
23
+	unpack ${A}
24
+	cd ${S}
25
+}
26
+
27
+src_compile() {
28
+	echo "Nothing to compile."
29
+}
30
+
31
+src_install() {
32
+	dodir ${INSTALL_DIR}
33
+	cp -R ${S}/* ${D}/${INSTALL_DIR}/ || die "Install failed!"
34
+	
35
+	dosym ${INSTALL_DIR}/oxygen.sh /usr/bin/oxygenxml
36
+	doicon ${S}/Oxygen128.png
37
+	make_desktop_entry "oxygenxml" "Oxygen XML Editor" Oxygen128.png "Application;Development"
38
+}
39
+
40
+pkg_postinst() {
41
+	echo ""
42
+	einfo "To run Oxygen XML Editor use oxygenxml command"
43
+	einfo "If you have troubles with \"Assertion c->xlib.lock failed\" then"
44
+	einfo "you need do follow (http://bugs.freedesktop.org/show_bug.cgi?id=9336)"
45
+	einfo "For sun-java5-bin:"
46
+	einfo "sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/sun-jdk-1.5/jre/lib/i386/xawt/libmawt.so"
47
+	einfo "For sun-java6-bin:"
48
+	einfo "sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/xawt/libmawt.so"
49
+	echo ""
50
+
51
+}

+ 3
- 0
app-misc/nixnote/Manifest View File

@@ -0,0 +1,3 @@
1
+DIST nixnote-1.2_amd64.tar.gz 53887850 RMD160 f457bfb6fdd9ffcfa1527ec4c4a39aad5b434e85 SHA1 7a5614f1415d97983a80c0edb9b228dd20378238 SHA256 de8d24287f79ec2575704abf17e52843c9f3e8bc2a5bf05ab149954784002eb5
2
+DIST nixnote-1.2_i386.tar.gz 53425587 RMD160 cba3f04b0bfd16906ae410328350731ab1f13e47 SHA1 abda0de4d1d229503f99c4666a2b977e6a86bdae SHA256 a96d57628b493fb494e14a7fa51db1c347c119efe51556d02887613530b0ee97
3
+EBUILD nixnote-1.2.ebuild 557 RMD160 49bf62eedcf537d1dea89382740f04f12c273eab SHA1 54562fa337c2c60ff882c60c0e94038547de6a2c SHA256 0f8c48f755250639248461e1c7fc5be87a451f102a64092e4f31f615771ba665

+ 28
- 0
app-misc/nixnote/nixnote-1.2.ebuild View File

@@ -0,0 +1,28 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=2
6
+
7
+inherit eutils
8
+
9
+DESCRIPTION="An open source Evernote clone"
10
+HOMEPAGE="http://nevernote.sourceforge.net/index.htm"
11
+SRC_URI="x86?    ( mirror://sourceforge/nevernote/${P}_i386.tar.gz )
12
+		 amd64?  ( mirror://sourceforge/nevernote/${P}_amd64.tar.gz )"
13
+
14
+LICENSE="GPL-2"
15
+SLOT="0"
16
+KEYWORDS="~x86 ~amd64"
17
+IUSE=""
18
+
19
+DEPEND=""
20
+RDEPEND=">=virtual/jdk-1.5
21
+ 		 media-libs/libpng:1.2"
22
+
23
+S="${PN}"
24
+src_install() {
25
+	cp -rf "${S}/usr" "${D}/"
26
+}
27
+
28
+

+ 11
- 0
dev-util/colormake/ChangeLog View File

@@ -0,0 +1,11 @@
1
+# ChangeLog for dev-util/colormake
2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
3
+# $Header: $
4
+
5
+  23 Oct 2010; Sebastian Pipping <sping@gentoo.org> colormake-0.2.ebuild:
6
+  Add ~amd64 keyword
7
+
8
+  26 Dec 2008; Sebastian Pipping (sping) <sebastian@pipping.org>
9
+  +colormake-0.2.ebuild, +files/colormake-0.2-disable-broken-tagging.patch,
10
+  +metadata.xml:
11
+  New ebuild for bug 252313

+ 6
- 0
dev-util/colormake/Manifest View File

@@ -0,0 +1,6 @@
1
+AUX colormake-0.2-disable-broken-tagging.patch 661 RMD160 c9cee92d1a83b3696ec2ee75ef037ab4734112b8 SHA1 5e2fde865ffe028f5bfea6cb69fd938b5671105c SHA256 b61d0262b8a69edf7c20b07c5698122a35ad251ea5e542bd9926a622daefa944
2
+AUX colormake-0.2-save-pipe-exit-status.patch 177 RMD160 a20943339dfaa80fc733e5837e1b7bd0cc4e90b3 SHA1 979ee9eaf4878c6be528ef02772c4752a48942a7 SHA256 98a95b839da18d36bbca507e1374db4c1bccea8bbb41e590d75dc4fa40051c5c
3
+DIST colormake-0.2.tar.gz 9871 RMD160 b39e22de6ed72a5874af56e2fc46774a9452af4d SHA1 d24e1cd27c121aba86b1610616848228eebd1393 SHA256 8e7cc49acbc2b9b52ce2d87993f709e6813f0ba3aff0b0bbe7630c3a24aff969
4
+EBUILD colormake-0.2-r1.ebuild 661 RMD160 e941b599d2c4ad04a1ca08c794db64fb0ae2a8f1 SHA1 fd33688f71f8598fbd960b5ab7cdeefc3f843342 SHA256 5178058dd21f693bb96294e2a615d17f5d3256980d3cb135154f1e3c6c75ff28
5
+MISC ChangeLog 401 RMD160 d85ebf7cd9ddd355508f8955725f432ff44998db SHA1 a73e3197c52ee026c17301fa44e0e20bd3c8a05c SHA256 8e421e7b3cf41b42e39be0004ed37851540ca994de9c9d2e76bfce9a6110746e
6
+MISC metadata.xml 208 RMD160 c18611400760e42bdd001905be0a63c2e963bcea SHA1 595816105cac477cb85792a182e15888029118a1 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82

+ 29
- 0
dev-util/colormake/colormake-0.2-r1.ebuild View File

@@ -0,0 +1,29 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+inherit eutils
5
+
6
+DESCRIPTION="Colorizing wrapper around make"
7
+HOMEPAGE="http://bre.klaki.net/programs/colormake/"
8
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
9
+LICENSE="GPL-2"
10
+
11
+SLOT="0"
12
+KEYWORDS="~amd64 ~x86"
13
+IUSE="vanilla"
14
+RDEPEND="dev-lang/perl"
15
+
16
+S=${WORKDIR}/${PN}
17
+
18
+src_unpack() {
19
+	unpack ${A}
20
+	cd "${S}"
21
+	use vanilla || epatch "${FILESDIR}"/${P}-disable-broken-tagging.patch
22
+	epatch "${FILESDIR}"/${P}-save-pipe-exit-status.patch
23
+	mv cmake colormake  # prevent clash with dev-util/cmake
24
+	rm Makefile
25
+}
26
+
27
+src_install() {
28
+	dobin colormake{,.pl} || die
29
+}

+ 62
- 0
dev-util/colormake/files/.svn/entries View File

@@ -0,0 +1,62 @@
1
+10
2
+
3
+dir
4
+12452
5
+svn://overlays.gentoo.org/proj/sunrise/reviewed/dev-util/colormake/files
6
+svn://overlays.gentoo.org/proj/sunrise
7
+
8
+
9
+
10
+2008-12-27T03:35:49.698343Z
11
+7549
12
+tommy
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+12608f7e-a915-0410-b2f3-ce240db1b126
28
+
29
+colormake-0.2-disable-broken-tagging.patch
30
+file
31
+
32
+
33
+
34
+
35
+2011-07-18T07:06:02.000000Z
36
+424b53f9c3bdb4cd9c69241d92f0c787
37
+2008-12-27T03:35:49.698343Z
38
+7549
39
+tommy
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+661
62
+

+ 20
- 0
dev-util/colormake/files/.svn/text-base/colormake-0.2-disable-broken-tagging.patch.svn-base View File

@@ -0,0 +1,20 @@
1
+--- colormake.pl	2000-03-08 00:58:33.000000000 +0100
2
++++ colormake.pl	2008-12-22 02:52:02.000000000 +0100
3
+@@ -27,7 +27,7 @@
4
+ $col_green =        "\033[32m";
5
+ $col_cyan =         "\033[36m";
6
+ $col_brown =        "\033[33m";
7
+-$col_norm =	        "\033[00m";
8
++$col_norm =         "\033[00m";
9
+ $col_background =   "\033[07m";
10
+ $col_brighten =     "\033[01m";
11
+ $col_underline =    "\033[04m";
12
+@@ -42,7 +42,7 @@
13
+ $col_linenum =      $col_cyan;
14
+ $col_trace =        $col_brown;
15
+ $col_warning =      $col_green;
16
+-$tag_error =        "Error: ";
17
++$tag_error =        "";
18
+ $col_error =        $tag_error . $col_brown . $col_brighten;
19
+ $error_highlight =  $col_brighten;
20
+ 

+ 20
- 0
dev-util/colormake/files/colormake-0.2-disable-broken-tagging.patch View File

@@ -0,0 +1,20 @@
1
+--- colormake.pl	2000-03-08 00:58:33.000000000 +0100
2
++++ colormake.pl	2008-12-22 02:52:02.000000000 +0100
3
+@@ -27,7 +27,7 @@
4
+ $col_green =        "\033[32m";
5
+ $col_cyan =         "\033[36m";
6
+ $col_brown =        "\033[33m";
7
+-$col_norm =	        "\033[00m";
8
++$col_norm =         "\033[00m";
9
+ $col_background =   "\033[07m";
10
+ $col_brighten =     "\033[01m";
11
+ $col_underline =    "\033[04m";
12
+@@ -42,7 +42,7 @@
13
+ $col_linenum =      $col_cyan;
14
+ $col_trace =        $col_brown;
15
+ $col_warning =      $col_green;
16
+-$tag_error =        "Error: ";
17
++$tag_error =        "";
18
+ $col_error =        $tag_error . $col_brown . $col_brighten;
19
+ $error_highlight =  $col_brighten;
20
+ 

+ 7
- 0
dev-util/colormake/files/colormake-0.2-save-pipe-exit-status.patch View File

@@ -0,0 +1,7 @@
1
+--- cmake.orig	1999-10-08 18:18:11.000000000 +0400
2
++++ cmake	2012-02-17 17:28:43.134573122 +0400
3
+@@ -5,3 +5,4 @@
4
+ #
5
+ 
6
+ make $* 2>&1 | colormake.pl `stty size`
7
++exit $PIPESTATUS

+ 5
- 0
dev-util/colormake/metadata.xml View File

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
5
+</pkgmetadata>

+ 28
- 0
games-strategy/0ad-data/0ad-data-11339_alpha9.ebuild View File

@@ -0,0 +1,28 @@
1
+# Copyright 1999-2012 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=3
6
+
7
+inherit games
8
+
9
+MY_PV="r${PV%_*}-alpha"
10
+MY_PN=${PN%-data}
11
+MY_P=${MY_PN}-${MY_PV}
12
+
13
+DESCRIPTION="Data files for 0ad"
14
+HOMEPAGE="http://wildfiregames.com/0ad/"
15
+SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-data.tar.xz"
16
+
17
+LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0"
18
+SLOT="0"
19
+KEYWORDS="~amd64"
20
+IUSE=""
21
+
22
+S=${WORKDIR}/${MY_P}
23
+
24
+src_install() {
25
+	insinto "${GAMES_DATADIR}"/${MY_PN}
26
+	doins -r binaries/data/* || die
27
+	prepgamesdirs
28
+}

+ 2
- 0
games-strategy/0ad-data/Manifest View File

@@ -0,0 +1,2 @@
1
+DIST 0ad-r11339-alpha-unix-data.tar.xz 294663484 RMD160 0955d2cc141f16bb1b0cbd58265e72e2b906cb7d SHA1 9178093bd71251b27bc2c85189f657a91c4e34b5 SHA256 ac4cb17478eed633e1b0c975b052706797628fac399147d6301c4001100170b4
2
+EBUILD 0ad-data-11339_alpha9.ebuild 563 RMD160 1979c73f79198c3a0720173c983ea2ab43d112af SHA1 9685a40f59b7077474ee061f06c5f4db5b9ad339 SHA256 e5c7f1da1ed3594ef05919c09033071d4942b9ba769519d241c4a54d7bb6a947

+ 132
- 0
games-strategy/0ad/0ad-10803.ebuild View File

@@ -0,0 +1,132 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI="3"
6
+
7
+inherit eutils wxwidgets games
8
+
9
+MY_P="0ad-r${PV}-alpha"
10
+S="${WORKDIR}/${MY_P}"
11
+
12
+DESCRIPTION="0 A.D. is a free, real-time strategy game currently under development by Wildfire Games."
13
+HOMEPAGE="http://wildfiregames.com/0ad/"
14
+SRC_URI="mirror://sourceforge/zero-ad/${MY_P}-unix-build.tar.xz
15
+	mirror://sourceforge/zero-ad/${MY_P}-unix-data.tar.xz"
16
+
17
+LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0"
18
+SLOT="0"
19
+KEYWORDS="~amd64"
20
+IUSE="debug editor pch test"
21
+
22
+RDEPEND=">=dev-lang/spidermonkey-1.8.5
23
+	dev-libs/boost
24
+	dev-libs/libxml2
25
+	media-libs/devil
26
+	media-libs/openal
27
+	media-libs/libogg
28
+	media-libs/libpng
29
+	media-libs/libsdl[joystick]
30
+	media-libs/libvorbis
31
+	net-libs/enet:1.3
32
+	net-misc/curl
33
+	sys-libs/zlib
34
+	virtual/fam
35
+	virtual/jpeg
36
+	virtual/opengl
37
+	editor? ( x11-libs/wxGTK:2.8 )"
38
+
39
+DEPEND="${RDEPEND}
40
+	app-arch/zip
41
+	dev-lang/nasm
42
+	dev-util/cmake"
43
+
44
+RESTRICT="strip mirror"
45
+
46
+dir=${GAMES_PREFIX_OPT}/${PN}
47
+
48
+pkg_setup() {
49
+	games_pkg_setup
50
+	if use editor ; then
51
+		WX_GTK_VER=2.8 need-wxwidgets unicode
52
+	fi
53
+}
54
+
55
+src_prepare() {
56
+	epatch "${FILESDIR}"/premake-archless.patch
57
+	epatch "${FILESDIR}"/premake-script-archless.patch
58
+}
59
+
60
+src_compile() {
61
+	UPDATE_ARGS="--with-system-enet --with-system-mozjs185"
62
+
63
+	if ! use editor ; then
64
+		UPDATE_ARGS="${UPDATE_ARGS} --disable-atlas"
65
+	fi
66
+
67
+	cd "${S}/build/workspaces"
68
+	einfo "Running update-workspaces.sh with ${UPDATE_ARGS}"
69
+	./update-workspaces.sh ${UPDATE_ARGS} || die "update-workspaces.sh failed"
70
+	cd gcc
71
+
72
+	TARGETS="pyrogenesis Collada"
73
+	if use test ; then
74
+		TARGETS="${TARGETS} test"
75
+	fi
76
+	if use editor ; then
77
+		TARGETS="${TARGETS} AtlasUI"
78
+	fi
79
+	if use debug ; then
80
+		CONFIG=Debug
81
+	else
82
+		CONFIG=Release
83
+	fi
84
+	CONFIG=${CONFIG} emake ${TARGETS} || die "Can't build"
85
+}
86
+
87
+src_test() {
88
+	cd "${S}/binaries/system"
89
+	if use debug ; then
90
+		./test_dbg || die "Tests failed"
91
+	else
92
+		./test || die "Tests failed"
93
+	fi
94
+}
95
+
96
+src_install() {
97
+	cd "${S}"/binaries
98
+	insinto "${dir}"
99
+	doins -r data || die "doins -r failed"
100
+
101
+	insinto "${dir}"/system
102
+
103
+	doins "${S}"/binaries/system/libnvcore.so || die "doins failed"
104
+	doins "${S}"/binaries/system/libnvimage.so || die "doins failed"
105
+	doins "${S}"/binaries/system/libnvmath.so || die "doins failed"
106
+	doins "${S}"/binaries/system/libnvtt.so || die "doins failed"
107
+
108
+	if use debug ; then
109
+#		doins "${S}"/binaries/system/libmozjs185-ps-debug.so.1.0 || die "doins failed"
110
+		doins "${S}"/binaries/system/libCollada_dbg.so || die "doins failed"
111
+		if use editor ; then
112
+			doins "${S}"/binaries/system/libAtlasUI_dbg.so || die "doins failed"
113
+		fi
114
+		EXE_NAME=pyrogenesis_dbg
115
+	else
116
+#		doins "${S}"/binaries/system/libmozjs185-ps-release.so.1.0 || die "doins failed"
117
+		doins "${S}"/binaries/system/libCollada.so || die "doins failed"
118
+		if use editor ; then
119
+			doins "${S}"/binaries/system/libAtlasUI.so || die "doins failed"
120
+		fi
121
+		EXE_NAME=pyrogenesis
122
+	fi
123
+
124
+	exeinto "${dir}"/system
125
+	doexe "${S}"/binaries/system/${EXE_NAME} || die "doexe failed"
126
+
127
+	games_make_wrapper ${PN} ./system/${EXE_NAME} ${dir}
128
+	doicon "${S}"/build/resources/0ad.png
129
+	make_desktop_entry "${dir}"/system/${EXE_NAME} "0 A.D."
130
+
131
+	prepgamesdirs
132
+}

+ 110
- 0
games-strategy/0ad/0ad-11339_alpha9.ebuild View File

@@ -0,0 +1,110 @@
1
+# Copyright 1999-2012 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=3
6
+
7
+WX_GTK_VER="2.8"
8
+
9
+inherit eutils wxwidgets games
10
+
11
+MY_PV="r${PV%_*}-alpha"
12
+MY_P=${PN}-${MY_PV}
13
+
14
+DESCRIPTION="A free, real-time strategy game"
15
+HOMEPAGE="http://wildfiregames.com/0ad/"
16
+SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz"
17
+
18
+LICENSE="GPL-2 LGPL-2.1 MIT CCPL-Attribution-ShareAlike-3.0 as-is"
19
+SLOT="0"
20
+KEYWORDS="~amd64"
21
+IUSE="+audio +editor fam pch test"
22
+
23
+RDEPEND="
24
+	>=dev-lang/spidermonkey-1.8.5
25
+	dev-libs/boost
26
+	dev-libs/libxml2
27
+	~games-strategy/0ad-data-${PV}
28
+	media-libs/libpng:0
29
+	media-libs/libsdl[X,audio?,opengl,video]
30
+	net-libs/enet:1.3
31
+	net-misc/curl
32
+	sys-libs/zlib
33
+	virtual/jpeg
34
+	virtual/opengl
35
+	audio? ( media-libs/libogg
36
+		media-libs/libvorbis
37
+		media-libs/openal )
38
+	editor? ( x11-libs/wxGTK:2.8[X] )
39
+	fam? ( virtual/fam )
40
+	"
41
+DEPEND="${RDEPEND}
42
+	dev-util/pkgconfig
43
+	test? ( dev-lang/perl )"
44
+
45
+S=${WORKDIR}/${MY_P}
46
+
47
+src_prepare() {
48
+	# respect flags for 3rd party fcollada
49
+	epatch "${FILESDIR}"/11339_alpha9-fcollada-makefile.patch
50
+}
51
+
52
+src_configure() {
53
+	cd build/workspaces || die
54
+
55
+	# custom configure script
56
+	local myconf
57
+	myconf="--without-nvtt"
58
+	use fam || myconf="${myconf} --without-fam"
59
+	use pch || myconf="${myconf} --without-pch"
60
+	use test || myconf="${myconf} --without-tests"
61
+	use audio || myconf="${myconf} --without-audio"
62
+
63
+	# don't use bundled sources
64
+	./update-workspaces.sh \
65
+		--with-system-nvtt \
66
+		--with-system-enet \
67
+		--with-system-mozjs185 \
68
+		$(use_enable editor atlas) \
69
+		--bindir="${GAMES_BINDIR}" \
70
+		--libdir="$(games_get_libdir)"/${PN} \
71
+		--datadir="${GAMES_DATADIR}"/${PN} \
72
+		${myconf} || die
73
+}
74
+
75
+src_compile() {
76
+	cd build/workspaces/gcc || die
77
+
78
+	emake CONFIG=Release verbose=1 || die
79
+}
80
+
81
+src_test() {
82
+	cd binaries/system || die
83
+
84
+	if use nvtt ; then
85
+		./test || die "test phase failed"
86
+	else
87
+		ewarn "Skipping tests because USE nvtt is disabled"
88
+	fi
89
+}
90
+
91
+src_install() {
92
+	# bin
93
+	dogamesbin binaries/system/pyrogenesis || die
94
+
95
+	# libs
96
+	exeinto "$(games_get_libdir)"/${PN}
97
+	doexe binaries/system/libCollada.so || die
98
+	if use editor ; then
99
+		doexe binaries/system/libAtlasUI.so || die
100
+	fi
101
+
102
+	# other
103
+	dodoc binaries/system/readme.txt || die
104
+	doicon build/resources/${PN}.png || die
105
+	games_make_wrapper ${PN} "${GAMES_BINDIR}/pyrogenesis"
106
+	make_desktop_entry ${PN} ${PN} ${PN}
107
+
108
+	# permissions
109
+	prepgamesdirs
110
+}

+ 127
- 0
games-strategy/0ad/0ad-99999.ebuild View File

@@ -0,0 +1,127 @@
1
+# Copyright 1999-2012 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=3
6
+
7
+WX_GTK_VER="2.8"
8
+
9
+inherit eutils subversion wxwidgets games
10
+
11
+MY_PV="r${PV%_*}-alpha"
12
+MY_P=${PN}-${MY_PV}
13
+
14
+DESCRIPTION="A free, real-time strategy game"
15
+HOMEPAGE="http://wildfiregames.com/0ad/"
16
+ESVN_REPO_URI="http://svn.wildfiregames.com/public/ps/trunk"
17
+
18
+LICENSE="GPL-2 LGPL-2.1 MIT CCPL-Attribution-ShareAlike-3.0 as-is"
19
+SLOT="0"
20
+KEYWORDS=""
21
+IUSE="+audio +editor fam +pch test"
22
+
23
+RDEPEND="
24
+	>=dev-lang/spidermonkey-1.8.5
25
+	dev-libs/boost
26
+	dev-libs/libxml2
27
+	!games-strategy/0ad-data
28
+	media-libs/libpng:0
29
+	media-libs/libsdl[X,audio?,opengl,video]
30
+	net-libs/enet:1.3
31
+	net-misc/curl
32
+	sys-libs/zlib
33
+	virtual/jpeg
34
+	virtual/opengl
35
+	audio? ( media-libs/libogg
36
+		media-libs/libvorbis
37
+		media-libs/openal )
38
+	editor? ( x11-libs/wxGTK:2.8[X] )
39
+	fam? ( virtual/fam )
40
+	"
41
+DEPEND="${RDEPEND}
42
+	dev-util/pkgconfig
43
+	test? ( dev-lang/perl )"
44
+
45
+S=${WORKDIR}/trunk
46
+
47
+pkg_setup() {
48
+	games_pkg_setup
49
+
50
+	if ! use pch ; then
51
+		eerror "pch useflag is potentially broken"
52
+		eerror "see http://trac.wildfiregames.com/ticket/1313"
53
+	fi
54
+}
55
+
56
+src_unpack() {
57
+	subversion_src_unpack
58
+}
59
+
60
+src_prepare() {
61
+	# respect flags for 3rd party fcollada
62
+	epatch "${FILESDIR}"/11339_alpha9-fcollada-makefile.patch
63
+}
64
+
65
+src_configure() {
66
+	cd build/workspaces || die
67
+
68
+	# custom configure script
69
+	local myconf
70
+	myconf="--without-nvtt"
71
+	use fam || myconf="${myconf} --without-fam"
72
+	use pch || myconf="${myconf} --without-pch"
73
+	use test || myconf="${myconf} --without-tests"
74
+	use audio || myconf="${myconf} --without-audio"
75
+
76
+	# don't use bundled sources
77
+	./update-workspaces.sh \
78
+		--with-system-nvtt \
79
+		--with-system-enet \
80
+		--with-system-mozjs185 \
81
+		$(use_enable editor atlas) \
82
+		--bindir="${GAMES_BINDIR}" \
83
+		--libdir="$(games_get_libdir)"/${PN} \
84
+		--datadir="${GAMES_DATADIR}"/${PN} \
85
+		${myconf} || die
86
+}
87
+
88
+src_compile() {
89
+	cd build/workspaces/gcc || die
90
+
91
+	emake CONFIG=Release verbose=1 || die
92
+}
93
+
94
+src_test() {
95
+	cd binaries/system || die
96
+
97
+	if use nvtt ; then
98
+		./test || die "test phase failed"
99
+	else
100
+		ewarn "Skipping tests because USE nvtt is disabled"
101
+	fi
102
+}
103
+
104
+src_install() {
105
+	# data
106
+	insinto "${GAMES_DATADIR}"/${PN}
107
+	doins -r binaries/data/* || die
108
+
109
+	# bin
110
+	dogamesbin binaries/system/pyrogenesis || die
111
+
112
+	# libs
113
+	exeinto "$(games_get_libdir)"/${PN}
114
+	doexe binaries/system/libCollada.so || die
115
+	if use editor ; then
116
+		doexe binaries/system/libAtlasUI.so || die
117
+	fi
118
+
119
+	# other
120
+	dodoc binaries/system/readme.txt || die
121
+	doicon build/resources/${PN}.png || die
122
+	games_make_wrapper ${PN} "${GAMES_BINDIR}/pyrogenesis"
123
+	make_desktop_entry ${PN} ${PN} ${PN}
124
+
125
+	# permissions
126
+	prepgamesdirs
127
+}

+ 7
- 0
games-strategy/0ad/Manifest View File

@@ -0,0 +1,7 @@
1
+AUX 11339_alpha9-fcollada-makefile.patch 1069 RMD160 d9155d60bd47eb83876f3b65c92d6c2384f87bdc SHA1 a04d8aea0c8ea6e13d0c123c5590eaf3b45d10cf SHA256 11ed3a1d83c2784d590ec047750cd1cc56932ad2e10203f70f72d19fe879464f
2
+DIST 0ad-r10803-alpha-unix-build.tar.xz 8609092 RMD160 bab976f5f4b04c6256418293758a19fc6471fc40 SHA1 9c9ee04bf1327bfd9161f51b18180ec8d3c6547b SHA256 fbf91d8482267384f8fb3fdd8a71e79ed71d73489c531f814fca70840043b928
3
+DIST 0ad-r10803-alpha-unix-data.tar.xz 264532800 RMD160 5dcdc8c2e01c6880b4a695e5380bc6824b8ecc42 SHA1 98d17a118d0a5cfe79140ddb2a24bfd3a376c28a SHA256 cb4d2b4c4ce1eadff4d34127664a6de02f9b062007275507d80d9ee6ebbae7d9
4
+DIST 0ad-r11339-alpha-unix-build.tar.xz 8593664 RMD160 5e7fc6449f7bde30611880ac2575c7cd2ef021d2 SHA1 e44f8484ca7082b1a9f2761a48aa8f54c8e833d1 SHA256 1e69bc02c1af1bfbe30244467761d13e1aaff164fe583d962cc8e13faf4a56cb
5
+EBUILD 0ad-10803.ebuild 3188 RMD160 cc08c1d288b3cb903d2ee5c9df1fe33b38cb7e3d SHA1 28c466764e7d3d4b20845a887d28781568365774 SHA256 d0997f7857468b5a68655ae327242f7e2392234ec3d40ff788f030be6e0a28f8
6
+EBUILD 0ad-11339_alpha9.ebuild 2398 RMD160 beb996e92b1f19975464ae9f85cdfac1ef0818b3 SHA1 99cbae548eb1d790cd0fa39911c284b3a301cab8 SHA256 9e12c630db167088d27afc6716dbc932228fb9d7cc3d25386821af46d37c7a61
7
+EBUILD 0ad-99999.ebuild 2666 RMD160 7023a0334f8f2584a7d98c19e7edcba06788bec6 SHA1 57ddc702b47bde6c753a894de57e47d8b830115e SHA256 69f8428f42ec755c7323d6f540b9ebb473dc1ce73be9d02a5cd3dbcf085fe479

+ 26
- 0
games-strategy/0ad/files/11339_alpha9-fcollada-makefile.patch View File

@@ -0,0 +1,26 @@
1
+From: hasufell <julian.ospald@googlemail.com>
2
+Date: Wed Apr 11 14:45:32 UTC 2012
3
+
4
+FCollada Makefile does not respect CXX and flags
5
+
6
+--- libraries/fcollada/src/Makefile
7
++++ libraries/fcollada/src/Makefile
8
+@@ -7,14 +7,14 @@
9
+ PIC_FLAGS ?= -fpic
10
+ endif
11
+ 
12
+-CXX := g++
13
+-CXXFLAGS := -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS)
14
++CXX ?= g++
15
++CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS)
16
+ CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL
17
+ CXXFLAGS_RELEASE := -O1 -DNDEBUG -DRETAIL
18
+ # (-O2 with gcc 4.3 causes linker errors when using this library, for unknown reasons, so stick with -O1)
19
+ CXXFLAGS_TEST := -O0 -g -D_DEBUG
20
+-LIBS := `pkg-config libxml-2.0 --libs`
21
+-INCLUDES := -IFCollada `pkg-config libxml-2.0 --cflags`
22
++LIBS += `pkg-config libxml-2.0 --libs`
23
++INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags`
24
+ INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES)
25
+ 
26
+ # FCollada is not aliasing-safe, so disallow dangerous optimisations

+ 3
- 0
media-tv/v4l2ucp/Manifest View File

@@ -0,0 +1,3 @@
1
+DIST v4l2ucp-2.0.2.tar.bz2 41380 RMD160 c82e139f5733843087832968a8c11df64ab93a1b SHA1 12960ae7b8bceaff017ac26d377fe4ef13628289 SHA256 e525add8788fa9ce613705a2a88947d4d1ef1c2bde8aa9f3e8ef19207271c1be
2
+EBUILD v4l2ucp-2.0.2.ebuild 423 RMD160 0928c2743a7ae76136cf7d7da89f9f6bec6198c2 SHA1 b77a2e7f45ae41c6b480bd5b01bc1ae9a96d8e68 SHA256 4f84dda44c6c8c828d0b395517f9a3dd4c3cf9f798a5d065fa4097765cf15091
3
+MISC Manifest.bkp 397 RMD160 c29e3cc96a81fcf7dba1dfeb8f1a574f569222f1 SHA1 bd51a62c8b0c2e6130528891de918e626c300c28 SHA256 e650c23a79beac4ec35d06eb881e9af704a29d45ecb96984113a6be2b3230dc3

+ 19
- 0
media-tv/v4l2ucp/v4l2ucp-2.0.2.ebuild View File

@@ -0,0 +1,19 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=2
6
+inherit cmake-utils
7
+
8
+DESCRIPTION="A universal control panel for all Video for Linux Two (V4L2)
9
+devices"
10
+HOMEPAGE="http://v4l2ucp.sf.net/"
11
+SRC_URI="mirror://sourceforge/v4l2ucp/${P}.tar.bz2"
12
+
13
+LICENSE="GPL-2"
14
+SLOT="0"
15
+KEYWORDS="~amd64 ~x86"
16
+IUSE=""
17
+
18
+DEPEND="x11-libs/qt-gui:4
19
+		media-libs/libv4l"

+ 4
- 0
net-fs/smbnetfs/Manifest View File

@@ -0,0 +1,4 @@
1
+AUX smbnetfs-0.5.3-0001-configure.in-allow-user-to-explicitly-enable-disable.patch 1621 RMD160 54363a670143d272a826855b126f65a331442fed SHA1 eff857afaab917a0d1e3bccfc900a4b3a067b559 SHA256 a3e9828460f0aec992640d274eec6d739ac569c3455c789e2a92ba3262928136
2
+AUX smbnetfs-reconfigure_file_modes.patch 471 RMD160 3b2b1e7f04625ce175ca6439241adf2be5ad5a83 SHA1 5d7628e8303969335fc5600ebcb6682ccb8a5677 SHA256 ce225f4bcdeae325f9aed7b0a58e17df433593ba2c4bb71a8dc18e978268c59e
3
+DIST smbnetfs-0.5.3.tar.bz2 135469 RMD160 5f3979e5f1b80d2a73e22050866d96fbc2e3b793 SHA1 d9717228c8b540470a180c693e229a6c59662cfb SHA256 e61d5acb2f489ce52505cb5c04724ba82f8fd3674ba185b2b0c9d7bb9cde5253
4
+EBUILD smbnetfs-0.5.3-r99.ebuild 1128 RMD160 06e10dcfa1d7779dc171a060fa9fe7ee445dfb46 SHA1 364355fe69254154a4a386f0825195290c5723dd SHA256 6e31016d811f6b0c7bab9a31099b5481b0b211e3f319c5a45a4ad8e085596e60

+ 47
- 0
net-fs/smbnetfs/files/smbnetfs-0.5.3-0001-configure.in-allow-user-to-explicitly-enable-disable.patch View File

@@ -0,0 +1,47 @@
1
+From ec83a6c130bdfc869d28f9bce8ce100167861266 Mon Sep 17 00:00:00 2001
2
+From: Sergei Trofimovich <slyfox@gentoo.org>
3
+Date: Sat, 28 Aug 2010 15:10:43 +0300
4
+Subject: [PATCH] configure.in: allow user to explicitly enable/disable gnome-keyring support
5
+
6
+Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
7
+---
8
+ configure.in |   22 +++++++++++++++++-----
9
+ 1 files changed, 17 insertions(+), 5 deletions(-)
10
+
11
+diff --git a/configure.in b/configure.in
12
+index 4738bb6..8dab68e 100644
13
+--- a/configure.in
14
++++ b/configure.in
15
+@@ -87,12 +87,24 @@ CFLAGS="$CFLAGS -D_REENTRANT -D_GNU_SOURCE -DFUSE_USE_VERSION=26 $FUSE_CFLAGS"
16
+ dnl *******************************
17
+ dnl *** Tests for gnome-keyring ***
18
+ dnl *******************************
19
+-PKG_CHECK_MODULES(GNOME_KEYRING, [gnome-keyring-1 >= 2.28],
20
+-	[AC_DEFINE([HAVE_GNOME_KEYRING], [], 
21
+-		[use gnome-keyring as password storage])])
22
+-LIBS="$LIBS $GNOME_KEYRING_LIBS"
23
+-CFLAGS="$CFLAGS $GNOME_KEYRING_CFLAGS"
24
+ 
25
++AC_ARG_WITH(gnome-keyring,
26
++	[AS_HELP_STRING(--with-gnome-keyring=@<:@no/yes@:>@,
27
++		use gnome-keyring as password storage @<:@default=auto@:>@)],
28
++	,
29
++	[with_gnome_keyring=maybe])
30
++
31
++if test x"$with_gnome_keyring" != xno; then
32
++	PKG_CHECK_MODULES(GNOME_KEYRING, [gnome-keyring-1 >= 2.28],
33
++		[AC_DEFINE([HAVE_GNOME_KEYRING], [],
34
++			[use gnome-keyring as password storage])],
35
++		[# mandatory depend
36
++		if test x"$with_gnome_keyring" = xyes; then
37
++			AC_MSG_ERROR([unable to find usable gnome-keyring])
38
++		fi])
39
++	LIBS="$LIBS $GNOME_KEYRING_LIBS"
40
++	CFLAGS="$CFLAGS $GNOME_KEYRING_CFLAGS"
41
++fi
42
+ 
43
+ dnl ******************************
44
+ dnl *** Tests for libsmbclient ***
45
+-- 
46
+1.7.1
47
+

+ 11
- 0
net-fs/smbnetfs/files/smbnetfs-reconfigure_file_modes.patch View File

@@ -0,0 +1,11 @@
1
+--- a/src/reconfigure.c	2012-03-01 17:38:19.382944425 +0400
2
++++ b/src/reconfigure.c	2012-03-01 17:36:12.865014080 +0400
3
+@@ -592,7 +592,7 @@
4
+ 
5
+     ok_permission = 0;
6
+     if (fstat(fileno(file), &st) == 0)
7
+-	ok_permission = ((st.st_uid == getuid()) && ((st.st_mode & 0177) == 0));
8
++	ok_permission = (/*(st.st_uid == getuid()) && */((st.st_mode & 0117) == 0));
9
+     else DPRINTF(3, "Stat file %s error : %s\n", filename, strerror(errno));
10
+ 
11
+     fscanf(file, "%[\n]", s);

+ 46
- 0
net-fs/smbnetfs/smbnetfs-0.5.3-r99.ebuild View File

@@ -0,0 +1,46 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/net-fs/smbnetfs/smbnetfs-0.5.3.ebuild,v 1.1 2010/09/02 18:37:38 slyfox Exp $
4
+
5
+EAPI=2
6
+inherit eutils autotools
7
+
8
+DESCRIPTION="FUSE filesystem for SMB shares"
9
+HOMEPAGE="http://sourceforge.net/projects/smbnetfs"
10
+SRC_URI="mirror://sourceforge/smbnetfs/${P}.tar.bz2"
11
+
12
+LICENSE="GPL-2"
13
+SLOT="0"
14
+KEYWORDS="~x86 ~amd64"
15
+IUSE="gnome"
16
+
17
+RDEPEND=">=sys-fs/fuse-2.3
18
+	>=net-fs/samba-3.2[smbclient]
19
+	gnome? ( gnome-base/gnome-keyring )"
20
+
21
+DEPEND="${RDEPEND}
22
+	dev-util/pkgconfig
23
+	sys-devel/make"
24
+
25
+src_prepare() {
26
+	epatch "${FILESDIR}/smbnetfs-reconfigure_file_modes.patch"
27
+	epatch "${FILESDIR}/smbnetfs-0.5.3-0001-configure.in-allow-user-to-explicitly-enable-disable.patch"
28
+	eautoreconf
29
+}
30
+
31
+src_configure() {
32
+	econf $(use_with gnome gnome-keyring) || die "econf failed"
33
+}
34
+
35
+src_install() {
36
+	emake install DESTDIR="${D}" || die "make install failed"
37
+	dodoc AUTHORS ChangeLog
38
+}
39
+
40
+pkg_postinst() {
41
+	elog
42
+	elog "For quick usage, exec:"
43
+	elog "'modprobe fuse'"
44
+	elog "'smbnetfs -oallow_other /mnt/samba'"
45
+	elog
46
+}

+ 1
- 0
profiles/repo_name View File

@@ -0,0 +1 @@
1
+backbone

+ 51
- 0
www-servers/nginx/Manifest View File

@@ -0,0 +1,51 @@
1
+AUX nginx-0.8.16-libatomic.patch 3971 RMD160 bf28ee1e0c75877bb402c4db89dadd8db65fb461 SHA1 7eb04572c4222044868f3a731d60bba0e3b87b0d SHA256 b93eaa75fb05b9497654a80ea23d2fde7861f918814695f17fb0e8d818480438
2
+AUX nginx-0.8.27-zero_filesize_check.patch 2680 RMD160 852317ef558b5491f1b7b61795b7c771fe7038fe SHA1 7cf4b3b4ae4b5c861ef82d8944c1051230a14141 SHA256 9b9d8b5f826f2e13266da65203ab13cc71e9c866fa9271c543ddb1a680ab2940
3
+AUX nginx-0.8.32-ey-balancer.patch 1977 RMD160 fff19fd36b4f29c74b92bb55e6b1366163703b5f SHA1 844b771f567d4f0318977de904ed1559e88cc5c4 SHA256 2f254cdf0e95357226aed112d0798f2dac14b8a4f1392119aac95f75c00a3fac
4
+AUX nginx-1.1.5-zero_filesize_check.patch 2680 RMD160 27e1d8dd6480ff900533f5d372878e7bcc626151 SHA1 9551a082b4cab4dc44822aa1b5ffac5e98550c96 SHA256 84cd09e431d159ff58eb369abf7fe0a82c3968ad7ba72105e27378d27bd53ced
5
+AUX nginx-r1 1645 RMD160 d032feec43e4ba31ac5b6fffec478ebbeb49db60 SHA1 49f0db3efaccd3cef545b8c68cfa557ca829352f SHA256 b263a663399d2897dfdf53226d45fc3707bc9230bd687b8003d075a48f60ecaf
6
+AUX nginx.conf-r4 1410 RMD160 4b188bb03b12de3b38a82e13b1a2bb93848e8948 SHA1 e836c85e98e3b2c633818c286992d32a68c0b5ff SHA256 74d984512901fc9cfd13cac60df06cd468566aae367c35a3205e6daf7e7c32b6
7
+AUX nginx.init-r2 1657 RMD160 a42538ae12cccfad1108fe2fca387ec666f4fd85 SHA1 7a0706894bed322d8b5814de98bca56d48c458d0 SHA256 9fceee69794de55b6da24ff2d11c72f6bc86339e7088c644b165dc35a9d5afa1
8
+AUX nginx.logrotate 364 RMD160 9fdfd2ea2f49b8dba20a030d893e34779bb32364 SHA1 4ab07992fa5c64f753e3643e1b51fcab4dec6ccf SHA256 9e3e090dfd10861d5f9b279e19113ce8d05caf9f33d488f6aabf9f19ac0cf925
9
+AUX passenger-3.0.1-cflags.patch 1005 RMD160 b48c9a96997277059566f1fd88187006fe8a161f SHA1 2e9eea3bc2c5c55475c59cd884507e3af3c65b42 SHA256 138280e03bfc3314bf50d43dfaa697aa09027d108fc39c8572f06d786dc7f202
10
+AUX passenger-3.0.1-missing-include.patch 340 RMD160 5e314c6ec809a37c898eed9166a1d0c7e71af41b SHA1 c43aff0bce51143c84f0b24857c4bdec2df161f0 SHA256 a41a53f893ac7737b520d1fec0f2490986aae09afe38d79ab540c141322da7eb
11
+AUX passenger-CFLAGS.patch 646 RMD160 12f1e5f80fd2694fed612226561670f9a0f7f556 SHA1 1f9e2df74069a8d863e850a0e7e13bd0e8fc8fcb SHA256 42b5221b418df055cd51d03057d92fb93c4f1bbca56a1ea35cc6f5c5d9e1953d
12
+DIST agentzh-rds-json-nginx-module-9cf3bef.tar.gz 71634 RMD160 18865286e5b66ae57147cf1da1820ead0da1ad00 SHA1 bab40f2f812b99518f01550235d9541fa744151d SHA256 8f015176535fdfe723621a077df22eb70422f327f1ee118f12133275aafd8775
13
+DIST agentzh-xss-nginx-module-58732b0.tar.gz 62283 RMD160 891685143ad62acaf637220daa776d4d71c02bbf SHA1 001870037c3cac7ed7e4bd4934516e63859bdd4a SHA256 82d03a6d5d43ebccd9650a18e9dbab30c641e278bcf30766036edfb897d6f5e0
14
+DIST chaoslawful-drizzle-nginx-module-aa3269a.tar.gz 97581 RMD160 6de55e83ebfeb791c088c328c95897329cef12c0 SHA1 2f32ec653c5bb6463ba172d8fc82225d14684238 SHA256 6193d8dce4cde4ccebbdb5089cfbc7c5f2ab598a199dc8a1037b28f66265c173
15
+DIST nginx-0.8.30.tar.gz 617971 RMD160 5cb7d1c929458c3463954a8ec1af308d47d63740 SHA1 32c018b5c9cbc6d487125d7cbee3e131e08e0d0e SHA256 ed79a8201299ae90181d4623004ed5329054e3a78291e5e416a9341e036353d5
16
+DIST nginx-0.8.42.tar.gz 642593 RMD160 b60c271071f9796b5f38c2136c6e2e653292ef71 SHA1 daf0b6d2f0c943c4602da94a29cba285a5a72e06 SHA256 9f9687f459a753719bf1668fba30b4cdfb2c892a0410b0b304fa663bfb276dbd
17
+DIST nginx-0.8.55.tar.gz 647824 RMD160 681f458d1b02a07c7cecf18b341f6868c9d95d65 SHA1 c105dc35ba01990e2508b21381d180d034c9ed43 SHA256 18ff555acb4220cb4db0f704224749d9b535343fe84b9f7c2de8645296e09301
18
+DIST nginx-1.0.10.tar.gz 686011 RMD160 875082ff6e9197cc26adf4ee51eeda34b9531e29 SHA1 01304d44048aa57944e935dda8523afd5e5d1e23 SHA256 7221fdb0f2a94875252cb3c406a2cd5895d9bc57874fc1b4f588964fd3361e3c
19
+DIST nginx-1.0.11.tar.gz 691501 RMD160 49d8602cd5cb557fd5847fa8c1a9629f4e6d91ab SHA1 c06144214144b61358ccf785e99f751b8ca0a3bb SHA256 4a382de6b89ec7eae03bfc9f9716bca5567993d0ae90fbd5f75c1ea598f7d722
20
+DIST nginx-1.0.9.tar.gz 685717 RMD160 db2b4d8df237c11c081fb6910a460cc0f30705f9 SHA1 f926bc18170177d0b7fc0ecbf5cdd5103f4c20d7 SHA256 e834b6f202b786f3b985315c24dcbd67c619d563ea03329d75a9ac667e138fff
21
+DIST nginx-1.1.10.tar.gz 701527 RMD160 444cfeb28b9b4af828acf9281e951c70a8350d66 SHA1 207ae6692bfe8e758ef5fcfa4cf1452193253b6a SHA256 ffd0953394be8c9e330c7440240b18b0e265529d0d091568788a6777f60a4735
22
+DIST nginx-1.1.11.tar.gz 704239 RMD160 8eef7fa6fea1834329b531167130a8102b817747 SHA1 73d65404879d5c130149d9147a16d724b08db62c SHA256 0350274c7b072293f98166a44597e7dddd2c249a1be6bfbeafd97868f49b01a1
23
+DIST nginx-1.1.12.tar.gz 707120 RMD160 1d09c3b17ee27774657c5be32f7fdcc20252c0b0 SHA1 78e8de01206fa5a150c3494ed313ea1d6b74353a SHA256 0d00f0f928bc8637f200de7bc405ebb95730c923df208624ea56529be44c08f9
24
+DIST nginx-1.1.7.tar.gz 693853 RMD160 a38f6eeba036c23e0b027305b934e362c7d800e4 SHA1 626f82cd6690d9c0705c897b20942ebafa7094ca SHA256 a1c0f16595a03757c6c5cc6bc17af6cb9059fc8d1681c2e0431c7bfb72fd0bf8
25
+DIST nginx-1.1.8.tar.gz 695829 RMD160 60a8ddd0885b7cb08d5eb1f526dd40f4e4614abd SHA1 e93c4b48379c0240fd4c7af8982faa3c4a7c834f SHA256 2f5d2d08fa59043aaae45c72c16ff052fabe1f5ba95fe5475d4994a5a55c9945
26
+DIST nginx_accept_language_module-20081217.tbz2 3297 RMD160 97df45d7a94ef906dcbaa69c800345993281b291 SHA1 32713b980b45830cfcec75ac7fdf8f4d43e1176e SHA256 95c431a08bdac717db9c386b2ae1d5d8c48eb9c681c7303bb25fcdcbeeb01ad4
27
+DIST nginx_http_push_module-0.692.tar.gz 29119 RMD160 9d2be16074cf28115af0f1d8f3646937cda649ad SHA1 72103084cad8f4d3d9a49a6b04cf780e4541605d SHA256 64868708071aa21dbc4c7a07d149dd6ec9108fb7eaf2aad5ad069406151f17fe
28
+DIST nginx_upload_module-2.2.0.tar.gz 25796 RMD160 5734af837be3fe8ec444a7e5e7f6707118594098 SHA1 93d6e83e613a0ce2ed057a434b344fa1b6609b47 SHA256 b1c26abe0427180602e257627b4ed21848c93cc20cefc33af084983767d65805
29
+DIST ngx-http-headers-more-0.15.tar.gz 22738 RMD160 2200ab529a086dd6bcf11a9a0470a4d05de7c824 SHA1 12bab1bbcecf57c410a812f5a7eebac49ff317f8 SHA256 d5ada29c15ff112c39599e3b245450ef785bb096c6724ecd8eaf1699b06e10e2
30
+DIST ngx-http-headers-more-0.16rc4.tar.gz 23578 RMD160 a0e0f99aa8fff61631f9cf77ee7ca6e147167f68 SHA1 12fc6a81e029eedfdcf32100ffe47a9b6d837a7d SHA256 e32c1e4eec68352e58184895eb96b7d0705ec0d8df75a1bcbe11fd2f46d5e065
31
+DIST ngx_cache_purge-1.3.tar.gz 6434 RMD160 d9f5d225b99f3164e80a85b7c7b4bee8bb16ea0e SHA1 ec52989ed545ef2be58414e747e592004794eba6 SHA256 256eec780f0f8f09ed10d5b0e4c3c32883a55d96e814fa0390b880d20745fcdb
32
+DIST ngx_cache_purge-1.4.tar.gz 6899 RMD160 b851f9d7c829152a6675d7e83df372e4bd894170 SHA1 35c45729183daa66b60741828a42492e06597da3 SHA256 4764e3d565445644f4a6b183cb9e987fce535396b00d68dc923bb35731a88886
33
+DIST ngx_cache_purge-1.5.tar.gz 7149 RMD160 7b7d351ea91ff3d4161296625a5a4992eee8b7d4 SHA1 f5717a2aee2cc174180627f9bf74a7c2f906047d SHA256 4b9cf48c0cf8f13150dfc329a889c221f6206a44aa9dcf8fa2f347abce55995c
34
+DIST ngx_http_redis-0.3.1.tar.gz 6012 RMD160 2a8a7ca4b62b33558b249aa19f7d5f34f77a2801 SHA1 c5f5383a8e042b2131423014376ce4283cbc85a9 SHA256 b66291bf7a034baf351fc4d0e57558d672bed0582fcfa9008eba4acf6b4486c4
35
+DIST ngx_http_redis-0.3.5.tar.gz 11373 RMD160 1f8b074b9a6359fda25aa895151f19b4606bd9fc SHA1 6cae6c986b306b6fedac3e0abedd80da5ea418fd SHA256 5398805bbc790b8ae5ddb5079cf726df63c8c206bbf9a3a4b035412194aac82e
36
+DIST ngx_slowfs_cache-1.6.tar.gz 10972 RMD160 e1d10851db4a55fc465665caa3f6989d142af2d3 SHA1 072d06b7547629b244bebeef7df7425567f264c9 SHA256 cc0505dbba30153691ff7b3a7353804d5ceb9a519a407b938cae49e9913a7bcc
37
+DIST ngx_upload_progress-0.8.2.tar.gz 16559 RMD160 3aadb9bf9b15b3810d1acb466d331ea5bdae6062 SHA1 cbff2734cccc3ac93b3422a9a01547af29f9c11d SHA256 cab70d2e300cfa0d9d7d3b34bf27810533ecbf11dddcd5078a4754cfab337c95
38
+DIST ngx_upload_progress-0.8.3.tar.gz 16694 RMD160 b3c8835a270cda2224f5be35f1afb818821609b3 SHA1 0edae535d1efd50524d9947acaebe3979b06fcfb SHA256 f391da7fd1a89bd65e852182b6cbc746289cd10c83b211be18e703ff3e3986ae
39
+DIST passenger-3.0.11.tar.gz 2378398 RMD160 4e66832d825cb1f5bf06d117d4285c0b0ab54c12 SHA1 6406ecd47b4f100eb98a2cac611793aab15cd31e SHA256 7bbabfafb9d7f4e1beb6a231dea1fe68d540910ceafec6469f51187a43d8ee4e
40
+DIST passenger-3.0.9.tar.gz 2365647 RMD160 51b3ec35d56bb93b7b2fd24f3fe5d64a5c60306a SHA1 dd158388786c606f71dc14014f07a43b6e13a34a SHA256 40a15c46bd0be13a8d55931cc526c5dae740f7c02d2bfc40a82075967131d7f6
41
+EBUILD nginx-0.8.30.ebuild 3762 RMD160 5d4dcc243fcf0d58f9f81214b9f14324278a1580 SHA1 3e20883b0eb394c6072f5823678c820850f58fc2 SHA256 2581f77823cd3dc686e2c8c4d221069353f9203c05f3e14af899b0d0192cffba
42
+EBUILD nginx-0.8.42.ebuild 316 RMD160 bd39c5442a3293d1a0991661ed50621e79b15cb1 SHA1 85ea40e26abed6bc403283a5b87f7ae1cddeab86 SHA256 4581b110749cc9c23a10bdcd49fefea723f298e611288f7fd88b467023dd6ce4
43
+EBUILD nginx-0.8.55.ebuild 10898 RMD160 2864c98dbc0fb62590bb3340d62fc7f372cf488f SHA1 6f5b50e5d3ea9e96b9c70196e336f12c97d4f562 SHA256 2d4b75e2b45543bcac94dd0842c7fa1c7817ab62aa04da0b953ff92b9cc1aac0
44
+EBUILD nginx-1.0.10.ebuild 10836 RMD160 035357f72d1a7c0857ec5ae261c28aefc0b6b486 SHA1 6faee3877bdf55b440e799b0cd1d48f538584ef0 SHA256 8b0097e0e08acfa93502570c2b794939b88f7e03f4a394091190f42778956bd9
45
+EBUILD nginx-1.0.11.ebuild 10840 RMD160 2b4b9ff8b927b5fdbf09f4127e540ebaa0a29e4f SHA1 939b8dba0807fc90cb8edd05198d263a3a41f791 SHA256 1888cb0314f6dc8a0c1fa3161f1f0413189605363ede657f8f13af3759b27f61
46
+EBUILD nginx-1.0.9.ebuild 10836 RMD160 6e58c31a07d75dbbcc55099d1d22dda5dbeab401 SHA1 81b8e6e469845b3f735dd5bba4b8321b68c08105 SHA256 d430d7679875885f6b7af46c3ac61fb52444fa7e2c158185068d9773e6a75f56
47
+EBUILD nginx-1.1.10.ebuild 12768 RMD160 5374ca8476a94d83b88ec641901c3681fa948e75 SHA1 50f6f1ba22bdaee0d5329dd5a694f52e07f90e17 SHA256 ae25aca34e984a2a435710b5c7f4c9eb27fb6d93bd2955b81410b6bc02e10f45
48
+EBUILD nginx-1.1.11.ebuild 12769 RMD160 2705a56d9977e6edff81b6dedada20ce1dcdb6b2 SHA1 d71f2867144cc82f3b56e09491b9d6c685e1469f SHA256 e0bbf07bbc9166a5f5cd00b0d21a40cd5939941ae784316a9093d9993a1bb33e
49
+EBUILD nginx-1.1.12.ebuild 12843 RMD160 795b44cdcc4157fc6a5cb005561f8eb01e71005f SHA1 c4c780c11a67966298fdf91dbde29579b073d673 SHA256 82a29a23c033945813f7a9a436fea5792caa7f41eb719a7526a012cbc3596650
50
+EBUILD nginx-1.1.7.ebuild 12765 RMD160 bb77eb299e952d6b58d7c89723039c38d90f11c1 SHA1 38478cc65a908a43a231cb714068e111a8ba4908 SHA256 7a01a99104a31f481938aed2f65b842c23d83a3c6cd2be3304d2a6d1d0aa574e
51
+EBUILD nginx-1.1.8.ebuild 12765 RMD160 a1dcc84ed0cdc51d50b925b75074cdd32d5b0220 SHA1 64ab4b1c9ed450aa160547bc4edae0c7ddf5c203 SHA256 d0b0800d2f6a311f0b2b76d6b1cb4593c8b7bd8af89f9baf8ff3c86854e495cb

+ 81
- 0
www-servers/nginx/files/nginx-1.1.5-zero_filesize_check.patch View File

@@ -0,0 +1,81 @@
1
+diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c
2
+index 5164734..6daf4b7 100644
3
+--- a/src/http/modules/ngx_http_rewrite_module.c
4
++++ b/src/http/modules/ngx_http_rewrite_module.c
5
+@@ -813,6 +813,11 @@ ngx_http_rewrite_if_condition(ngx_conf_t *cf, ngx_http_rewrite_loc_conf_t *lcf)
6
+             return NGX_CONF_OK;
7
+         }
8
+ 
9
++        if (p[1] == 'z') {
10
++            fop->op = ngx_http_script_file_empty;
11
++            return NGX_CONF_OK;
12
++        }
13
++
14
+         if (p[0] == '!') {
15
+             if (p[2] == 'f') {
16
+                 fop->op = ngx_http_script_file_not_plain;
17
+@@ -833,6 +838,11 @@ ngx_http_rewrite_if_condition(ngx_conf_t *cf, ngx_http_rewrite_loc_conf_t *lcf)
18
+                 fop->op = ngx_http_script_file_not_exec;
19
+                 return NGX_CONF_OK;
20
+             }
21
++
22
++            if (p[2] == 'z') {
23
++                fop->op = ngx_http_script_file_not_empty;
24
++                return NGX_CONF_OK;
25
++            }
26
+         }
27
+ 
28
+         ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
29
+diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
30
+index a703f08..4a82b6d 100644
31
+--- a/src/http/ngx_http_script.c
32
++++ b/src/http/ngx_http_script.c
33
+@@ -1520,12 +1520,14 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e)
34
+         case ngx_http_script_file_dir:
35
+         case ngx_http_script_file_exists:
36
+         case ngx_http_script_file_exec:
37
++        case ngx_http_script_file_not_empty:
38
+              goto false_value;
39
+ 
40
+         case ngx_http_script_file_not_plain:
41
+         case ngx_http_script_file_not_dir:
42
+         case ngx_http_script_file_not_exists:
43
+         case ngx_http_script_file_not_exec:
44
++        case ngx_http_script_file_empty:
45
+              goto true_value;
46
+         }
47
+ 
48
+@@ -1580,6 +1582,18 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e)
49
+             goto false_value;
50
+         }
51
+         goto true_value;
52
++
53
++    case ngx_http_script_file_empty:
54
++        if (of.size == 0) {
55
++             goto true_value;
56
++        }
57
++        goto false_value;
58
++
59
++    case ngx_http_script_file_not_empty:
60
++        if (of.size > 0) {
61
++            goto false_value;
62
++        }
63
++        goto true_value;
64
+     }
65
+ 
66
+ false_value:
67
+diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h
68
+index c5b1e40..7790b53 100644
69
+--- a/src/http/ngx_http_script.h
70
++++ b/src/http/ngx_http_script.h
71
+@@ -171,7 +171,9 @@ typedef enum {
72
+     ngx_http_script_file_exists,
73
+     ngx_http_script_file_not_exists,
74
+     ngx_http_script_file_exec,
75
+-    ngx_http_script_file_not_exec
76
++    ngx_http_script_file_not_exec,
77
++    ngx_http_script_file_empty,
78
++    ngx_http_script_file_not_empty
79
+ } ngx_http_script_file_op_e;
80
+ 
81
+ 

+ 71
- 0
www-servers/nginx/files/nginx-r1 View File

@@ -0,0 +1,71 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2004 Gentoo Foundation
3
+# Distributed under the terms of the GNU General Public License v2
4
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx-r1,v 1.1 2006/07/04 16:58:38 voxus Exp $
5
+
6
+opts="${opts} upgrade reload configtest"
7
+
8
+depend() {
9
+	need net
10
+	use dns logger
11
+}
12
+
13
+start() {
14
+	configtest || return 1
15
+	ebegin "Starting nginx"
16
+	start-stop-daemon --start --pidfile /var/run/nginx.pid \
17
+		--exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
18
+	eend $? "Failed to start nginx"
19
+}
20
+
21
+stop() {
22
+	configtest || return 1
23
+	ebegin "Stopping nginx"
24
+	start-stop-daemon --stop --pidfile /var/run/nginx.pid
25
+	eend $? "Failed to stop nginx"
26
+	rm -f /var/run/nginx.pid
27
+}
28
+
29
+reload() {
30
+	configtest || return 1
31
+	ebegin "Refreshing nginx' configuration"
32
+	kill -HUP `cat /var/run/nginx.pid` &>/dev/null
33
+	eend $? "Failed to reload nginx"
34
+}
35
+
36
+upgrade() {
37
+	configtest || return 1
38
+	ebegin "Upgrading nginx"
39
+
40
+	einfo "Sending USR2 to old binary"
41
+	kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
42
+
43
+	einfo "Sleeping 3 seconds before pid-files checking"
44
+	sleep 3
45
+
46
+	if [ ! -f /var/run/nginx.pid.oldbin ]; then
47
+		eerror "File with old pid not found"
48
+		return 1
49
+	fi
50
+
51
+	if [ ! -f /var/run/nginx.pid ]; then
52
+		eerror "New binary failed to start"
53
+		return 1
54
+	fi
55
+
56
+	einfo "Sleeping 3 seconds before WINCH"
57
+	sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
58
+
59
+	einfo "Sending QUIT to old binary"
60
+	kill -QUIT `cat /var/run/nginx.pid.oldbin`
61
+
62
+	einfo "Upgrade completed"
63
+
64
+	eend $? "Upgrade failed"
65
+}
66
+
67
+configtest() {
68
+	ebegin "Checking nginx' configuration"
69
+	/usr/sbin/nginx -c /etc/nginx/nginx.conf -t
70
+	eend $? "failed, please correct errors above"
71
+}

+ 72
- 0
www-servers/nginx/files/nginx.conf-r4 View File

@@ -0,0 +1,72 @@
1
+user nginx nginx;
2
+worker_processes 1;
3
+
4
+error_log /var/log/nginx/error_log info;
5
+
6
+events {
7
+	worker_connections  8192;
8
+	use epoll;
9
+}
10
+
11
+http {
12
+	include		/etc/nginx/mime.types;
13
+	default_type	application/octet-stream;
14
+
15
+	log_format main
16
+		'$remote_addr - $remote_user [$time_local] '
17
+        	'"$request" $status $bytes_sent '
18
+		'"$http_referer" "$http_user_agent" '
19
+		'"$gzip_ratio"';
20
+									       
21
+	client_header_timeout	10m;
22
+	client_body_timeout	10m;
23
+	send_timeout		10m;
24
+
25
+	connection_pool_size		256;
26
+	client_header_buffer_size	1k;
27
+	large_client_header_buffers	4 2k;
28
+	request_pool_size		4k;
29
+
30
+	gzip on;
31
+	gzip_min_length	1100;
32
+	gzip_buffers	4 8k;
33
+	gzip_types	text/plain;
34
+
35
+	output_buffers	1 32k;
36
+	postpone_output	1460;
37
+
38
+	sendfile	on;
39
+	tcp_nopush	on;
40
+	tcp_nodelay	on;
41
+
42
+	keepalive_timeout	75 20;
43
+
44
+	ignore_invalid_headers	on;
45
+
46
+	index index.html;
47
+
48
+	server {
49
+		listen		127.0.0.1;
50
+		server_name	localhost;
51
+
52
+		access_log	/var/log/nginx/localhost.access_log main;
53
+		error_log	/var/log/nginx/localhost.error_log info;
54
+
55
+		root /var/www/localhost/htdocs;
56
+	}
57
+
58
+	##ssl portion
59
+	# server {
60
+	# 	listen		127.0.0.1:443;
61
+	# 	server_name	localhost;
62
+	# 	
63
+	# 	ssl on;
64
+	# 	ssl_certificate		/etc/ssl/nginx/nginx.pem;
65
+	# 	ssl_certificate_key	/etc/ssl/nginx/nginx.key;
66
+	# 	
67
+	# 	access_log	/var/log/nginx/localhost.ssl_access_log main;
68
+	# 	error_log	/var/log/nginx/localhost.ssl_error_log info;
69
+	# 
70
+	# 	root /var/www/localhost/htdocs;
71
+	# }
72
+}

+ 71
- 0
www-servers/nginx/files/nginx.init-r2 View File

@@ -0,0 +1,71 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2004 Gentoo Foundation
3
+# Distributed under the terms of the GNU General Public License v2
4
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
5
+
6
+opts="${opts} upgrade reload configtest"
7
+
8
+depend() {
9
+	need net
10
+	use dns logger netmount
11
+}
12
+
13
+start() {
14
+	configtest || return 1
15
+	ebegin "Starting nginx"
16
+	start-stop-daemon --start --pidfile /var/run/nginx.pid \
17
+		--exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
18
+	eend $? "Failed to start nginx"
19
+}
20
+
21
+stop() {
22
+	configtest || return 1
23
+	ebegin "Stopping nginx"
24
+	start-stop-daemon --stop --pidfile /var/run/nginx.pid
25
+	eend $? "Failed to stop nginx"
26
+	rm -f /var/run/nginx.pid
27
+}
28
+
29
+reload() {
30
+	configtest || return 1
31
+	ebegin "Refreshing nginx' configuration"
32
+	kill -HUP `cat /var/run/nginx.pid` &>/dev/null
33
+	eend $? "Failed to reload nginx"
34
+}
35
+
36
+upgrade() {
37
+	configtest || return 1
38
+	ebegin "Upgrading nginx"
39
+
40
+	einfo "Sending USR2 to old binary"
41
+	kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
42
+
43
+	einfo "Sleeping 3 seconds before pid-files checking"
44
+	sleep 3
45
+
46
+	if [ ! -f /var/run/nginx.pid.oldbin ]; then
47
+		eerror "File with old pid not found"
48
+		return 1
49
+	fi
50
+
51
+	if [ ! -f /var/run/nginx.pid ]; then
52
+		eerror "New binary failed to start"
53
+		return 1
54
+	fi
55
+
56
+	einfo "Sleeping 3 seconds before WINCH"
57
+	sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
58
+
59
+	einfo "Sending QUIT to old binary"
60
+	kill -QUIT `cat /var/run/nginx.pid.oldbin`
61
+
62
+	einfo "Upgrade completed"
63
+
64
+	eend $? "Upgrade failed"
65
+}
66
+
67
+configtest() {
68
+	ebegin "Checking nginx' configuration"
69
+	/usr/sbin/nginx -c /etc/nginx/nginx.conf -t
70
+	eend $? "failed, please correct errors above"
71
+}

+ 11
- 0
www-servers/nginx/files/nginx.logrotate View File

@@ -0,0 +1,11 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.2 2011/04/08 08:32:20 hollow Exp $
4
+
5
+/var/log/nginx/*_log {
6
+	missingok
7
+	sharedscripts
8
+	postrotate
9
+		test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
10
+	endscript
11
+}

+ 24
- 0
www-servers/nginx/files/passenger-3.0.1-cflags.patch View File

@@ -0,0 +1,24 @@
1
+diff --git a/build/config.rb b/build/config.rb
2
+index 8905bd8..64199fb 100644
3
+--- a/build/config.rb
4
++++ b/build/config.rb
5
+@@ -24,11 +24,7 @@
6
+ OPTIMIZE = boolean_option("OPTIMIZE")
7
+ CC       = string_option("CC", "gcc")
8
+ CXX      = string_option("CXX", "g++")
9
+-if OPTIMIZE
10
+-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -O2 -DBOOST_DISABLE_ASSERTS".strip
11
+-else
12
+-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS".strip
13
+-end
14
++OPTIMIZATION_FLAGS = "#{ENV['CXXFLAGS']} -DNDEBUG -DBOOST_DISABLE_ASSERTS".strip
15
+ 
16
+ # Extra compiler flags that should always be passed to the C/C++ compiler.
17
+ # Should be included last in the command string, even after PlatformInfo.portability_cflags.
18
+@@ -39,4 +35,4 @@ EXTRA_CXXFLAGS = "-Wall #{OPTIMIZATION_FLAGS}".strip
19
+ EXTRA_LDFLAGS  = ""
20
+ 
21
+ # Whether to use the vendored libev or the system one.
22
+-USE_VENDORED_LIBEV = boolean_option("USE_VENDORED_LIBEV", true)
23
+\ No newline at end of file
24
++USE_VENDORED_LIBEV = false

+ 12
- 0
www-servers/nginx/files/passenger-3.0.1-missing-include.patch View File

@@ -0,0 +1,12 @@
1
+diff --git a/ext/common/RandomGenerator.h b/ext/common/RandomGenerator.h
2
+index 4a72a5e..836bf66 100644
3
+--- a/ext/common/RandomGenerator.h
4
++++ b/ext/common/RandomGenerator.h
5
+@@ -26,6 +26,7 @@
6
+ #define _PASSENGER_RANDOM_GENERATOR_H_
7
+ 
8
+ #include <string>
9
++#include <cerrno>
10
+ 
11
+ #include <boost/noncopyable.hpp>
12
+ #include <boost/shared_ptr.hpp>

+ 15
- 0
www-servers/nginx/files/passenger-CFLAGS.patch View File

@@ -0,0 +1,15 @@
1
+--- Rakefile.org	2009-10-15 18:45:30.000000000 +0100
2
++++ Rakefile	2009-10-16 12:17:25.000000000 +0100
3
+@@ -39,11 +39,7 @@
4
+ CC  = "gcc"
5
+ CXX = "g++"
6
+ LIBEXT = PlatformInfo.library_extension
7
+-if OPTIMIZE
8
+-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -O2 -DBOOST_DISABLE_ASSERTS"
9
+-else
10
+-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS"
11
+-end
12
++OPTIMIZATION_FLAGS = "#{ENV['CXXFLAGS']} -DNDEBUG -DBOOST_DISABLE_ASSERTS"
13
+ 
14
+ # Extra compiler flags that should always be passed to the C/C++ compiler.
15
+ # Should be included last in the command string, even after PlatformInfo.portability_cflags.

+ 407
- 0
www-servers/nginx/nginx-1.1.12.ebuild View File

@@ -0,0 +1,407 @@
1
+# Copyright 2011-2012 W-Mark Kubacki
2
+# Distributed under the terms of the OSI Reciprocal Public License
3
+# $Header: $
4
+
5
+EAPI="4"
6
+
7
+# Maintainer notes:
8
+# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite
9
+# - any http-module activates the main http-functionality and overrides USE=-http
10
+# - keep the following requirements in mind before adding external modules:
11
+#   * alive upstream
12
+#   * sane packaging
13
+#   * builds cleanly
14
+# - TODO: test the google-perftools module (included in vanilla tarball)
15
+
16
+# prevent perl-module from adding automagic perl DEPENDs
17
+GENTOO_DEPEND_ON_PERL="no"
18
+
19
+# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license)
20
+HTTP_UPLOAD_PROGRESS_MODULE_PV="0.8.3"
21
+HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}"
22
+HTTP_UPLOAD_PROGRESS_MODULE_SHA1="c7c663f"
23
+HTTP_UPLOAD_PROGRESS_MODULE_URI="http://github.com/masterzen/nginx-upload-progress-module/tarball/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}"
24
+
25
+# http_headers_more (http://github.com/agentzh/headers-more-nginx-module, BSD license)
26
+HTTP_HEADERS_MORE_MODULE_PV="0.16rc4"
27
+HTTP_HEADERS_MORE_MODULE_P="ngx-http-headers-more-${HTTP_HEADERS_MORE_MODULE_PV}"
28
+HTTP_HEADERS_MORE_MODULE_SHA1="6cd7ae8"
29
+HTTP_HEADERS_MORE_MODULE_URI="http://github.com/agentzh/headers-more-nginx-module/tarball/v${HTTP_HEADERS_MORE_MODULE_PV}"
30
+
31
+# http_passenger (http://www.modrails.com/, MIT license)
32
+# TODO: currently builds some stuff in src_configure
33
+PASSENGER_PV="3.0.11"
34
+USE_RUBY="ruby18"
35
+RUBY_OPTIONAL="yes"
36
+
37
+# http_redis (http://wiki.nginx.org/HttpRedis)
38
+HTTP_REDIS_MODULE_P="ngx_http_redis-0.3.5"
39
+
40
+# http_push (http://pushmodule.slact.net/, MIT license)
41
+HTTP_PUSH_MODULE_PV="0.692"
42
+HTTP_PUSH_MODULE_P="nginx_http_push_module-${HTTP_PUSH_MODULE_PV}"
43
+HTTP_PUSH_MODULE_URI="http://pushmodule.slact.net/downloads/${HTTP_PUSH_MODULE_P}.tar.gz"
44
+
45
+# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license)
46
+HTTP_CACHE_PURGE_MODULE_PV="1.5"
47
+HTTP_CACHE_PURGE_MODULE_P="ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}"
48
+HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/${HTTP_CACHE_PURGE_MODULE_P}.tar.gz"
49
+
50
+# HTTP Upload module from Valery Kholodkov
51
+# (http://www.grid.net.ru/nginx/upload.en.html, BSD license)
52
+HTTP_UPLOAD_MODULE_PV="2.2.0"
53
+HTTP_UPLOAD_MODULE_P="nginx_upload_module-${HTTP_UPLOAD_MODULE_PV}"
54
+HTTP_UPLOAD_MODULE_URI="http://www.grid.net.ru/nginx/download/${HTTP_UPLOAD_MODULE_P}.tar.gz"
55
+
56
+# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license)
57
+HTTP_SLOWFS_CACHE_MODULE_PV="1.6"
58
+HTTP_SLOWFS_CACHE_MODULE_P="ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}"
59
+HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz"
60
+
61
+inherit eutils ssl-cert toolchain-funcs perl-module ruby-ng flag-o-matic
62
+
63
+DESCRIPTION="Robust, small and high performance http and reverse proxy server"
64
+HOMEPAGE="http://nginx.org/"
65
+SRC_URI="http://nginx.org/download/${P}.tar.gz
66
+	nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz )
67
+	nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz )
68
+	nginx_modules_http_passenger? ( mirror://rubyforge/passenger/passenger-${PASSENGER_PV}.tar.gz )
69
+	nginx_modules_http_redis? ( http://people.freebsd.org/~osa/${HTTP_REDIS_MODULE_P}.tar.gz )
70
+	nginx_modules_http_push? ( ${HTTP_PUSH_MODULE_URI} )
71
+	nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} )
72
+	nginx_modules_http_upload? ( ${HTTP_UPLOAD_MODULE_URI} )
73
+	nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} )
74
+	"
75
+RESTRICT="primaryuri"
76
+
77
+LICENSE="as-is BSD BSD-2 GPL-2 MIT"
78
+SLOT="0"
79
+KEYWORDS="amd64 ~ppc ~sparc x86 arm ~x86-fbsd"
80
+
81
+NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi
82
+geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi ssi
83
+split_clients upstream_ip_hash userid uwsgi"
84
+NGINX_MODULES_OPT="addition dav degradation flv geoip gzip_static image_filter
85
+mp4 perl random_index realip secure_link stub_status sub xslt"
86
+NGINX_MODULES_MAIL="imap pop3 smtp"
87
+NGINX_MODULES_3RD="
88
+	http_upload_progress
89
+	http_headers_more
90
+	http_passenger
91
+	http_redis
92
+	http_push
93
+	http_cache_purge
94
+	http_upload
95
+	http_slowfs_cache
96
+	"
97
+
98
+IUSE="aio debug +http +http-cache ipv6 libatomic +pcre ssl vim-syntax"
99
+
100
+for mod in $NGINX_MODULES_STD; do
101
+	IUSE="${IUSE} +nginx_modules_http_${mod}"
102
+done
103
+
104
+for mod in $NGINX_MODULES_OPT; do
105
+	IUSE="${IUSE} nginx_modules_http_${mod}"
106
+done
107
+
108
+for mod in $NGINX_MODULES_MAIL; do
109
+	IUSE="${IUSE} nginx_modules_mail_${mod}"
110
+done
111
+
112
+for mod in $NGINX_MODULES_3RD; do
113
+	IUSE="${IUSE} nginx_modules_${mod}"
114
+done
115
+
116
+CDEPEND="
117
+	pcre? ( >=dev-libs/libpcre-4.2 )
118
+	ssl? ( dev-libs/openssl )
119
+	http-cache? ( userland_GNU? ( dev-libs/openssl ) )
120
+	nginx_modules_http_geo? ( dev-libs/geoip )
121
+	nginx_modules_http_gzip? ( sys-libs/zlib )
122
+	nginx_modules_http_gzip_static? ( sys-libs/zlib )
123
+	nginx_modules_http_image_filter? ( media-libs/gd[jpeg,png] )
124
+	nginx_modules_http_perl? ( >=dev-lang/perl-5.8 )
125
+	nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 )
126
+	nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl ) )
127
+	nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt )
128
+	nginx_modules_http_passenger? (
129
+		$(ruby_implementation_depend ruby18)
130
+		>=dev-ruby/rubygems-0.9.0
131
+		>=dev-ruby/rake-0.8.1
132
+		>=dev-ruby/fastthread-1.0.1
133
+		>=dev-ruby/rack-1.0.0
134
+		dev-libs/libev
135
+	)"
136
+RDEPEND="${CDEPEND}"
137
+DEPEND="${CDEPEND}
138
+	arm? ( dev-libs/libatomic_ops )
139
+	ppc? ( dev-libs/libatomic_ops )
140
+	libatomic? ( dev-libs/libatomic_ops )"
141
+PDEPEND="vim-syntax? ( app-vim/nginx-syntax )"
142
+S="${WORKDIR}/${P}"
143
+
144
+pkg_setup() {
145
+	ebegin "Creating nginx user and group"
146
+	enewgroup ${PN}
147
+	enewuser ${PN} -1 -1 -1 ${PN}
148
+	eend ${?}
149
+
150
+	if use libatomic; then
151
+		ewarn "GCC 4.1+ features built-in atomic operations."
152
+		ewarn "Using libatomic_ops is only needed if using"
153
+		ewarn "a different compiler or a GCC prior to 4.1"
154
+	fi
155
+
156
+	if [[ -n $NGINX_ADD_MODULES ]]; then
157
+		ewarn "You are building custom modules via \$NGINX_ADD_MODULES!"
158
+		ewarn "This nginx installation is not supported!"
159
+		ewarn "Make sure you can reproduce the bug without those modules"
160
+		ewarn "_before_ reporting bugs."
161
+	fi
162
+
163
+	if use !http; then
164
+		ewarn "To actually disable all http-functionality you also have to disable"
165
+		ewarn "all nginx http modules."
166
+	fi
167
+
168
+	if use nginx_modules_http_passenger; then
169
+		ruby-ng_pkg_setup
170
+		use debug && append-flags -DPASSENGER_DEBUG
171
+	fi
172
+}
173
+
174
+src_unpack() {
175
+	# prevent ruby-ng.eclass from messing with src_unpack
176
+	default
177
+}
178
+
179
+src_prepare() {
180
+	epatch "${FILESDIR}/nginx-1.1.5-zero_filesize_check.patch"
181
+
182
+	sed -i 's/ make/ \\$(MAKE)/' "${S}"/auto/lib/perl/make
183
+	sed -i 's/1001011/1001012/' "${S}"/src/core/nginx.h
184
+
185
+	if use nginx_modules_http_passenger; then
186
+		cd "${WORKDIR}"/passenger-${PASSENGER_PV}
187
+		epatch \
188
+			"${FILESDIR}/passenger-3.0.1-missing-include.patch"
189
+
190
+		sed -i \
191
+			-e 's|/usr/lib/phusion-passenger/agents|/usr/libexec/passenger/agents|' \
192
+			-e 's|/usr/share/phusion-passenger/helper-scripts|/usr/libexec/passenger/bin|' \
193
+			-e "s|/usr/share/doc/phusion-passenger|/usr/share/doc/${PF}|" \
194
+			lib/phusion_passenger.rb ext/common/ResourceLocator.h || die "sed failed"
195
+	fi
196
+}
197
+
198
+src_configure() {
199
+	local myconf= http_enabled= mail_enabled=
200
+
201
+	use aio       && myconf+=" --with-file-aio --with-aio_module"
202
+	use debug     && myconf+=" --with-debug"
203
+	use ipv6      && myconf+=" --with-ipv6"
204
+	use libatomic && myconf+=" --with-libatomic"
205
+	use pcre      && myconf+=" --with-pcre --with-pcre-jit"
206
+
207
+	# HTTP modules
208
+	for mod in $NGINX_MODULES_STD; do
209
+		if use nginx_modules_http_${mod}; then
210
+			http_enabled=1
211
+		else
212
+			myconf+=" --without-http_${mod}_module"
213
+		fi
214
+	done
215
+
216
+	for mod in $NGINX_MODULES_OPT; do
217
+		if use nginx_modules_http_${mod}; then
218
+			http_enabled=1
219
+			myconf+=" --with-http_${mod}_module"
220
+		fi
221
+	done
222
+
223
+	if use nginx_modules_http_fastcgi; then
224
+		myconf+=" --with-http_realip_module"
225
+	fi
226
+
227
+	# third-party modules
228
+	if use nginx_modules_http_upload_progress; then
229
+		http_enabled=1
230
+		myconf+=" --add-module=${WORKDIR}/masterzen-nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_SHA1}"
231
+	fi
232
+
233
+	if use nginx_modules_http_headers_more; then
234
+		http_enabled=1
235
+		myconf+=" --add-module=${WORKDIR}/agentzh-headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_SHA1}"
236
+	fi
237
+
238
+	if use nginx_modules_http_passenger; then
239
+		http_enabled=1
240
+		myconf+=" --add-module=${WORKDIR}/passenger-${PASSENGER_PV}/ext/nginx"
241
+	fi
242
+
243
+	if use nginx_modules_http_redis; then
244
+		http_enabled=1
245
+		myconf+=" --add-module=${WORKDIR}/${HTTP_REDIS_MODULE_P}"
246
+	fi
247
+
248
+	if use nginx_modules_http_push; then
249
+		http_enabled=1
250
+		myconf+=" --add-module=${WORKDIR}/${HTTP_PUSH_MODULE_P}"
251
+	fi
252
+
253
+	if use nginx_modules_http_cache_purge; then
254
+		http_enabled=1
255
+		myconf+=" --add-module=${WORKDIR}/${HTTP_CACHE_PURGE_MODULE_P}"
256
+	fi
257
+
258
+	if use nginx_modules_http_upload; then
259
+		http_enabled=1
260
+		myconf+=" --add-module=${WORKDIR}/${HTTP_UPLOAD_MODULE_P}"
261
+	fi
262
+
263
+	if use nginx_modules_http_slowfs_cache; then
264
+		http_enabled=1
265
+		myconf+=" --add-module=${WORKDIR}/${HTTP_SLOWFS_CACHE_MODULE_P}"
266
+	fi
267
+
268
+	if use http || use http-cache; then
269
+		http_enabled=1
270
+	fi
271
+
272
+	if [ $http_enabled ]; then
273
+		use http-cache || myconf+=" --without-http-cache"
274
+		use ssl && myconf+=" --with-http_ssl_module"
275
+	else
276
+		myconf+=" --without-http --without-http-cache"
277
+	fi
278
+
279
+	# MAIL modules
280
+	for mod in $NGINX_MODULES_MAIL; do
281
+		if use nginx_modules_mail_${mod}; then
282
+			mail_enabled=1
283
+		else
284
+			myconf+=" --without-mail_${mod}_module"
285
+		fi
286
+	done
287
+
288
+	if [ $mail_enabled ]; then
289
+		myconf+=" --with-mail"
290
+		use ssl && myconf+=" --with-mail_ssl_module"
291
+	fi
292
+
293
+	# custom modules
294
+	for mod in $NGINX_ADD_MODULES; do
295
+		myconf+=" --add-module=${mod}"
296
+	done
297
+
298
+	# https://bugs.gentoo.org/286772
299
+	export LANG=C LC_ALL=C
300
+	tc-export CC
301
+
302
+	./configure \
303
+		--prefix=/usr \
304
+		--sbin-path=/usr/sbin/nginx \
305
+		--conf-path=/etc/${PN}/${PN}.conf \
306
+		--error-log-path=/var/log/${PN}/error_log \
307
+		--pid-path=/var/run/${PN}.pid \
308
+		--lock-path=/var/lock/nginx.lock \
309
+		--user=${PN} --group=${PN} \
310
+		--with-cc-opt="-I${ROOT}usr/include" \
311
+		--with-ld-opt="-L${ROOT}usr/lib" \
312
+		--http-log-path=/var/log/${PN}/access_log \
313
+		--http-client-body-temp-path=/var/tmp/${PN}/client \
314
+		--http-proxy-temp-path=/var/tmp/${PN}/proxy \
315
+		--http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
316
+		--http-scgi-temp-path=/var/tmp/${PN}/scgi \
317
+		--http-uwsgi-temp-path=/var/tmp/${PN}/uwsgi \
318
+		${myconf} || die "configure failed"
319
+}
320
+
321
+src_compile() {
322
+	# https://bugs.gentoo.org/286772
323
+	export LANG=C LC_ALL=C
324
+	emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "emake failed"
325
+}
326
+
327
+src_install() {
328
+	keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi}
329
+	keepdir /var/www/localhost/htdocs
330
+
331
+	dosbin objs/nginx
332
+	newinitd "${FILESDIR}"/nginx.init-r2 nginx
333
+
334
+	cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
335
+	rm conf/win-utf conf/koi-win conf/koi-utf
336
+
337
+	dodir /etc/${PN}
338
+	insinto /etc/${PN}
339
+	doins conf/*
340
+
341
+	doman man/nginx.8
342
+	dodoc CHANGES* README
343
+
344
+	# logrotate
345
+	insinto /etc/logrotate.d
346
+	newins "${FILESDIR}"/nginx.logrotate nginx
347
+
348
+	if use nginx_modules_http_perl; then
349
+		cd "${S}"/objs/src/http/modules/perl/
350
+		einstall DESTDIR="${D}" INSTALLDIRS=vendor || die "failed to install perl stuff"
351
+		fixlocalpod
352
+	fi
353
+
354
+	if use nginx_modules_http_push; then
355
+		docinto ${HTTP_PUSH_MODULE_P}
356
+		dodoc "${WORKDIR}"/${HTTP_PUSH_MODULE_P}/{changelog.txt,protocol.txt,README}
357
+	fi
358
+
359
+	if use nginx_modules_http_cache_purge; then
360
+		docinto ${HTTP_CACHE_PURGE_MODULE_P}
361
+		dodoc "${WORKDIR}"/${HTTP_CACHE_PURGE_MODULE_P}/{CHANGES,README}
362
+	fi
363
+
364
+	if use nginx_modules_http_upload; then
365
+		docinto ${HTTP_UPLOAD_MODULE_P}
366
+		dodoc "${WORKDIR}"/${HTTP_UPLOAD_MODULE_P}/{Changelog,README}
367
+	fi
368
+
369
+	if use nginx_modules_http_slowfs_cache; then
370
+		docinto ${HTTP_SLOWFS_CACHE_MODULE_P}
371
+		dodoc "${WORKDIR}"/${HTTP_SLOWFS_CACHE_MODULE_P}/{CHANGES,README}
372
+	fi
373
+
374
+	if use nginx_modules_http_passenger; then
375
+		# passengers Rakefile is so horribly broken that we have to do it
376
+		# manually
377
+		cd "${WORKDIR}"/passenger-${PASSENGER_PV}
378
+
379
+		export RUBY="ruby18"
380
+
381
+		insinto $(${RUBY} -rrbconfig -e 'print Config::CONFIG["archdir"]')
382
+		insopts -m 0755
383
+		doins ext/ruby/*/passenger_native_support.so
384
+		doruby -r lib/phusion_passenger lib/phusion_passenger.rb
385
+
386
+		exeinto /usr/bin
387
+		doexe bin/passenger-memory-stats bin/passenger-status
388
+
389
+		exeinto /usr/libexec/passenger/bin
390
+		doexe helper-scripts/passenger-spawn-server
391
+
392
+		exeinto /usr/libexec/passenger/agents
393
+		doexe agents/Passenger{LoggingAgent,Watchdog}
394
+
395
+		exeinto /usr/libexec/passenger/agents/nginx
396
+		doexe agents/nginx/PassengerHelperAgent
397
+	fi
398
+}
399
+
400
+pkg_postinst() {
401
+	if use ssl; then
402
+		if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
403
+			install_cert /etc/ssl/${PN}/${PN}
404
+			chown ${PN}:${PN} "${ROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem}
405
+		fi
406
+	fi
407
+}

+ 2
- 0
x11-drivers/snail/Manifest View File

@@ -0,0 +1,2 @@
1
+DIST snail-1.2.6.tar.bz2 628927 RMD160 64a1c556fc72729ea19e25355769b528187d9542 SHA1 d7381c4c86dcd3c08ceb8d88e2a882aafa90a9d7 SHA256 3b4f81d3a2b46281bf494343ecdf0980b231cfe558e57f1403ea873ddcc35196
2
+EBUILD snail-1.2.6.ebuild 541 RMD160 e031d0113153de3363e9fa4df36767780304afcc SHA1 2fb9578c0e53305575a4e0cb048703c45db49066 SHA256 c4a7d1f61fd64d26a07a030af04b66c112d45f936ccb0cb0a04177769abf687c

+ 34
- 0
x11-drivers/snail/snail-1.2.6.ebuild View File

@@ -0,0 +1,34 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=4
6
+inherit eutils
7
+
8
+DESCRIPTION="Snail - nVidia Optimus support"
9
+
10
+SRC_URI="ftp://backbone.ws/projects/snail/${P}.tar.bz2"
11
+
12
+HOMEPAGE="https://chili.backbone.ws/projects/snail"
13
+
14
+KEYWORDS="-* ~x86 ~amd64"
15
+
16
+SLOT="0"
17
+
18
+LICENSE="GPL-3"
19
+
20
+IUSE=""
21
+
22
+DEPEND="x11-drivers/nvidia-drivers
23
+        sys-apps/dmidecode"
24
+
25
+RDEPEND="${DEPEND}"
26
+
27
+src_install() {
28
+	emake install DESTDIR="${D}" || die
29
+}
30
+
31
+pkg_postinst() {
32
+	snail.configure
33
+}
34
+

+ 2
- 0
x11-themes/gtk-engines-equinox/Manifest View File

@@ -0,0 +1,2 @@
1
+DIST 121881-equinox-1.30.tar.bz2 616171 RMD160 7c537b7b5037ae08cb37b668142e954bfecf6543 SHA1 3256ffaf3e0770029bbc0cd7806ad34dab1bb4fe SHA256 1fea28bb08e89c63bdcb9ba8ee612b4e8fd9bea56a715efe6d7d8bcd7848013f
2
+EBUILD gtk-engines-equinox-1.30.ebuild 997 RMD160 abe96e25280f3f1c77185a917ea8c6e672f3d2da SHA1 de7826c9c858cd89feaa7582efb2c9c934e80a1e SHA256 8d079d9589f3597f268017abdf9516be614161541ac2b405b2c1f601fde1117b

+ 48
- 0
x11-themes/gtk-engines-equinox/gtk-engines-equinox-1.30.ebuild View File

@@ -0,0 +1,48 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI=2
5
+
6
+MY_P=${P/gtk-engines-}
7
+
8
+DESCRIPTION="A heavily modified version of the Aurora engine"
9
+HOMEPAGE="http://gnome-look.org/content/show.php/Equinox+GTK+Engine?content=121881"
10
+SRC_URI="http://gnome-look.org/CONTENT/content-files/121881-${MY_P}.tar.bz2"
11
+
12
+LICENSE="GPL-2"
13
+SLOT="0"
14
+KEYWORDS="~amd64"
15
+IUSE=""
16
+
17
+RDEPEND="x11-libs/gtk+:2"
18
+DEPEND="${RDEPEND}
19
+	dev-util/pkgconfig"
20
+
21
+S=${WORKDIR}/${MY_P}
22
+
23
+src_unpack() {
24
+	unpack ${A}
25
+
26
+	echo Untarring engine files...
27
+	tar xpf "${WORKDIR}/equinox-gtk-engine.tar.gz" || die
28
+	cd ${S}
29
+
30
+	echo Untarring themes files...
31
+	mkdir themes
32
+	cd themes
33
+	tar xpf "${WORKDIR}"/equinox-themes.tar.gz || die
34
+}
35
+
36
+src_configure() {
37
+	econf --enable-animation || die
38
+}
39
+
40
+src_install() {
41
+	emake DESTDIR="${D}" install || die
42
+	dodoc AUTHORS COPYING ChangeLog NEWS
43
+
44
+	echo Installing themes...
45
+	dodir /usr/share/themes/
46
+	insinto /usr/share/themes/
47
+	doins -r themes/* || die
48
+}

Loading…
Cancel
Save