code:
diff -up cdrkit-1.1.8/wodim/wodim.c.werror cdrkit-1.1.8/wodim/wodim.c
--- cdrkit-1.1.8/wodim/wodim.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/wodim/wodim.c	2008-05-27 15:36:22.000000000 +0200
@@ -4089,7 +4089,7 @@ audioread(SCSI *usalp, cdr_t *dp, int fl

 	read_scsi(usalp, buf, 1000, 1);
 	printf("XXX:\n");
-	write(1, buf, 512); /* FIXME: handle return value */
+	do{int ret;ret=write(1, buf, 512);}while(0); /* FIXME: handle return value */
 	unload_media(usalp, dp, flags);
 	comexit(0);
 #endif
diff -up cdrkit-1.1.8/wodim/isosize.c.werror cdrkit-1.1.8/wodim/isosize.c
--- cdrkit-1.1.8/wodim/isosize.c.werror	2008-05-27 15:41:36.000000000 +0200
+++ cdrkit-1.1.8/wodim/isosize.c	2008-05-27 15:42:12.000000000 +0200
@@ -69,7 +69,7 @@ isosize(int f)
 	vp = (struct iso9660_pr_voldesc *) &vd;

 	do {
-		read(f, &vd, sizeof (vd)); /* FIXME: check return value */
+		do{int ret;ret=read(f, &vd, sizeof (vd));}while(0); /* FIXME: check return value */
 		if (GET_UBYTE(vd.vd_type) == VD_PRIMARY)
 			break;

diff -up cdrkit-1.1.8/icedax/toc.c.werror cdrkit-1.1.8/icedax/toc.c
--- cdrkit-1.1.8/icedax/toc.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/icedax/toc.c	2008-05-27 15:41:11.000000000 +0200
@@ -1071,7 +1071,7 @@ static int handle_userchoice(char *p, un
 	/* get user response. */
 	do {
 		fprintf(stderr, "please choose one (0-%u): ", nr);
-		scanf("%u", &user_choice); /* FIXME: check return value */
+		do{int ret;ret=scanf("%u", &user_choice);}while(0); /* FIXME: check return value */
 	} while (user_choice > nr);

 	if (user_choice == nr)
diff -up cdrkit-1.1.8/genisoimage/diag/dump.c.werror cdrkit-1.1.8/genisoimage/diag/dump.c
--- cdrkit-1.1.8/genisoimage/diag/dump.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/diag/dump.c	2008-05-27 15:34:03.000000000 +0200
@@ -368,7 +368,7 @@ main(int argc, char *argv[])
 	do {
 		if (file_addr < (off_t)0) file_addr = (off_t)0;
 		showblock(1);
-		read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
+		do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
 		if (c == 'a')
 			file_addr -= PAGE;
 		if (c == 'b')
@@ -378,11 +378,11 @@ main(int argc, char *argv[])
 			printf("Enter new starting block (in hex):");
 			if (sizeof (file_addr) > sizeof (long)) {
 				Llong	ll;
-				scanf("%llx", &ll); /* FIXME: check return value */
+				do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
 				file_addr = (off_t)ll;
 			} else {
 				long	l;
-				scanf("%lx", &l); /* FIXME: check return value */
+				do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
 				file_addr = (off_t)l;
 			}
 			file_addr = file_addr << 11;
@@ -392,7 +392,7 @@ main(int argc, char *argv[])
 		if (c == 'f') {
 			crsr2(20, 1);
 			printf("Enter new search string:");
-			fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
+			do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
 			while (search[strlen((char *)search)-1] == '\n')
 				search[strlen((char *)search)-1] = 0;
 			crsr2(20, 1);
diff -up cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror cdrkit-1.1.8/genisoimage/diag/isoinfo.c
--- cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/diag/isoinfo.c	2008-05-27 15:34:03.000000000 +0200
@@ -651,7 +651,7 @@ extract_file(struct iso_directory_record
 #endif
 		len -= tlen;
 		extent++;
-		write(STDOUT_FILENO, buff, tlen); /* FIXME: check return value */
+		do{int ret;ret=write(STDOUT_FILENO, buff, tlen);}while(0); /* FIXME: check return value */
 	}
 }

diff -up cdrkit-1.1.8/genisoimage/diag/isodump.c.werror cdrkit-1.1.8/genisoimage/diag/isodump.c
--- cdrkit-1.1.8/genisoimage/diag/isodump.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/diag/isodump.c	2008-05-27 15:34:03.000000000 +0200
@@ -655,7 +655,7 @@ main(int argc, char *argv[])
 		if (file_addr < 0)
 			file_addr = (off_t)0;
 		showblock(1);
-		read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
+		do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
 		if (c == 'a')
 			file_addr -= blocksize;
 		if (c == 'b')
@@ -665,11 +665,11 @@ main(int argc, char *argv[])
 			printf("Enter new starting block (in hex):");
 			if (sizeof (file_addr) > sizeof (long)) {
 				Llong	ll;
-				scanf("%llx", &ll); /* FIXME: check return value */
+				do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
 				file_addr = (off_t)ll;
 			} else {
 				long	l;
-				scanf("%lx", &l); /* FIXME: check return value */
+				do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
 				file_addr = (off_t)l;
 			}
 			file_addr = file_addr * blocksize;
@@ -679,7 +679,7 @@ main(int argc, char *argv[])
 		if (c == 'f') {
 			crsr2(20, 1);
 			printf("Enter new search string:");
-			fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
+			do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
 			while (search[strlen((char *)search)-1] == '\n')
 				search[strlen((char *)search)-1] = 0;
 			crsr2(20, 1);
diff -up cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror cdrkit-1.1.8/genisoimage/diag/isovfy.c
--- cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/diag/isovfy.c	2008-05-27 15:34:03.000000000 +0200
@@ -591,11 +591,11 @@ check_path_tables(int typel_extent, int
 	readsecs(typel_extent * blocksize / 2048, typel, ISO_BLOCKS(path_table_size));
 #else
 	lseek(fileno(infile), (off_t)((off_t)typel_extent) * blocksize, SEEK_SET);
-	read(fileno(infile), typel, path_table_size); /* FIXME: check return value */
+	do{int ret;ret=read(fileno(infile), typel, path_table_size);}while(0); /* FIXME: check return value */
 #endif
 	typem = (char *) malloc(path_table_size);
 	lseek(fileno(infile), (off_t)((off_t)typem_extent) * blocksize, SEEK_SET);
-	read(fileno(infile), typem, path_table_size); /* FIXME: check return value */
+	do{int ret;ret=read(fileno(infile), typem, path_table_size);}while(0); /* FIXME: check return value */

 	j = path_table_size;
 	pnt = typel;
diff -up cdrkit-1.1.8/genisoimage/jte.c.werror cdrkit-1.1.8/genisoimage/jte.c
--- cdrkit-1.1.8/genisoimage/jte.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/jte.c	2008-05-27 15:34:03.000000000 +0200
@@ -36,6 +36,8 @@
 #include "vms.h"
 #endif

+#include "md5.h"
+
 /* Different types used in building our state list below */
 #define JTET_FILE_MATCH 1
 #define JTET_NOMATCH    2
@@ -643,7 +645,7 @@ static void flush_bz2_chunk(void *buffer

     err = BZ2_bzCompressInit(&c_stream, 9, 0, 0);
     comp_buf = malloc(2 * size); /* Worst case */
-    c_stream.next_out = comp_buf;
+    c_stream.next_out = (char *)comp_buf;
     c_stream.avail_out = 2 * size;
     c_stream.next_in = buffer;
     c_stream.avail_in = size;
@@ -691,7 +693,7 @@ static void write_compressed_chunk(unsig
 		if (!uncomp_buf)
 		{
 #ifdef	USE_LIBSCHILY
-            comerr("failed to allocate %d bytes for template compression buffer\n", uncomp_size);
+            comerr("failed to allocate %d bytes for template compression buffer\n", (int)uncomp_size);
 #else
             fprintf(stderr, "failed to allocate %d bytes for template compression buffer\n", uncomp_size);
             exit(1);
@@ -1019,8 +1021,8 @@ void write_jt_match_record(char *filenam
 #endif
 		}
         if (first_block)
-            rsync64_sum = rsync64(buf, MIN_JIGDO_FILE_SIZE);
-        checksum_update(iso_context, buf, use);
+            rsync64_sum = rsync64((unsigned char *)buf, MIN_JIGDO_FILE_SIZE);
+        checksum_update(iso_context, (unsigned char *)buf, use);
 //        mk_MD5Update(&iso_context, buf, use);
         remain -= use;
         first_block = 0;
@@ -1033,7 +1035,7 @@ void write_jt_match_record(char *filenam
     {
         int pad_size = sector_size - (size % sector_size);
         memset(buf, 0, pad_size);
-        checksum_update(iso_context, buf, pad_size);
+        checksum_update(iso_context, (unsigned char *)buf, pad_size);
 //        mk_MD5Update(&iso_context, buf, pad_size);
     }

@@ -1041,7 +1043,7 @@ void write_jt_match_record(char *filenam
     if (size % sector_size)
     {
         int pad_size = sector_size - (size % sector_size);
-        write_compressed_chunk(buf, pad_size);
+        write_compressed_chunk((unsigned char *)buf, pad_size);
         add_unmatched_entry(pad_size);
     }
 }
diff -up cdrkit-1.1.8/genisoimage/eltorito.c.werror cdrkit-1.1.8/genisoimage/eltorito.c
--- cdrkit-1.1.8/genisoimage/eltorito.c.werror	2008-05-27 15:34:03.000000000 +0200
+++ cdrkit-1.1.8/genisoimage/eltorito.c	2008-05-27 15:34:03.000000000 +0200
@@ -660,7 +660,7 @@ fill_boot_desc(struct eltorito_defaultbo
 		set_731(bi_table.bi_length, de->size);
 		set_731(bi_table.bi_csum, bi_checksum);

-		write(bootimage, &bi_table, sizeof (bi_table)); /* FIXME: check return value */
+		do{int ret;ret=write(bootimage, &bi_table, sizeof (bi_table));}while(0); /* FIXME: check return value */
 		close(bootimage);
 	}
 }/* fill_boot_desc(... */


code:
diff -ru origin-1.1.9/wodim/scsi_cdr.c master-1.1.9/wodim/scsi_cdr.c
--- origin-1.1.9/wodim/scsi_cdr.c	2008-02-25 12:14:07.000000000 +0100
+++ master-1.1.9/wodim/scsi_cdr.c	2009-07-16 12:01:29.000000000 +0200
@@ -2181,26 +2181,30 @@
 		if (inq->add_len == 0) {
 			if (usalp->dev == DEV_UNKNOWN && got_inquiry) {
 				usalp->dev = DEV_ACB5500;
-				strcpy(inq->vendor_info,
-					"ADAPTEC ACB-5500        FAKE");
+				strncpy(inq->vendor_info, "ADAPTEC ", 8);
+				strncpy(inq->prod_ident,"ACB-5500        ", 16);
+				strncpy(inq->prod_revision, "FAKE", 4);

 			} else switch (usalp->dev) {
-
 				case DEV_ACB40X0:
-					strcpy(inq->vendor_info,
-							"ADAPTEC ACB-40X0        FAKE");
+					strncpy(inq->vendor_info, "ADAPTEC ", 8);
+					strncpy(inq->prod_ident, "ACB-40X0        ",16);
+					strncpy(inq->prod_revision, "FAKE", 4);
 					break;
 				case DEV_ACB4000:
-					strcpy(inq->vendor_info,
-							"ADAPTEC ACB-4000        FAKE");
+					strncpy(inq->vendor_info, "ADAPTEC ",8);
+					strncpy(inq->prod_ident, "ACB-4000        ",16);
+					strncpy(inq->prod_revision, "FAKE",4);
 					break;
 				case DEV_ACB4010:
-					strcpy(inq->vendor_info,
-							"ADAPTEC ACB-4010        FAKE");
+					strncpy(inq->vendor_info, "ADAPTEC ",8);
+					strncpy(inq->prod_ident, "ACB-4010        ",16);
+					strncpy(inq->prod_revision, "FAKE",4);
 					break;
 				case DEV_ACB4070:
-					strcpy(inq->vendor_info,
-							"ADAPTEC ACB-4070        FAKE");
+					strncpy(inq->vendor_info,"ADAPTEC ",8);
+					strncpy(inq->prod_ident, "ACB-4070        ", 16);
+					strncpy(inq->prod_revision, "FAKE",4 );
 					break;
 			}
 		} else if (inq->add_len < 31) {
@@ -2230,14 +2234,16 @@

 	case INQ_SEQD:
 		if (usalp->dev == DEV_SC4000) {
-			strcpy(inq->vendor_info,
-				"SYSGEN  SC4000          FAKE");
+			strncpy(inq->vendor_info,"SYSGEN  ",8);
+			strncpy(inq->prod_ident, "SC4000          ",16);
+			strncpy(inq->prod_revision, "FAKE",4);
 		} else if (inq->add_len == 0 &&
 					inq->removable &&
 						inq->ansi_version == 1) {
 			usalp->dev = DEV_MT02;
-			strcpy(inq->vendor_info,
-				"EMULEX  MT02            FAKE");
+			strncpy(inq->vendor_info,"EMULEX  ",8);
+			strncpy(inq->prod_ident, "MT02            ",16);
+			strncpy(inq->prod_revision, "FAKE",4);
 		}
 		break;

repo_name: ayhanyalcinsoy/main


code:
diff --git a/doc/icedax/tracknames.pl b/doc/icedax/tracknames.pl
old mode 100755
new mode 100644
index 09f0fcf..801b89e
--- a/doc/icedax/tracknames.pl
+++ b/doc/icedax/tracknames.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
 # A quick perl hack to get rename files pulled in with icedax.
 # by billo@billo.com
 #
diff --git a/genisoimage/eltorito.c b/genisoimage/eltorito.c
index b97bdf1..5d7c2d1 100644
--- a/genisoimage/eltorito.c
+++ b/genisoimage/eltorito.c
@@ -59,7 +59,7 @@ static	void	get_torito_desc(struct eltorito_boot_descriptor *boot_desc);
 static	void	fill_boot_desc(struct eltorito_defaultboot_entry *boot_desc_entry,
 										struct eltorito_boot_entry_info *boot_entry);
 void	get_boot_entry(void);
-void	new_boot_entry(void);
+void	new_boot_entry();
 static	int	tvd_write(FILE *outfile);

@@ -283,6 +283,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc)
 	int			i;
 	int			offset;
 	struct eltorito_defaultboot_entry boot_desc_record;
+	struct eltorito_sectionheader_entry section_header;

 	memset(boot_desc, 0, sizeof (*boot_desc));
 	boot_desc->type[0] = 0;
@@ -317,7 +318,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc)
 	 */
 	memset(&valid_desc, 0, sizeof (valid_desc));
 	valid_desc.headerid[0] = 1;
-	valid_desc.arch[0] = EL_TORITO_ARCH_x86;
+	valid_desc.arch[0] = first_boot_entry->arch;

 	/*
 	 * we'll shove start of publisher id into id field,
@@ -347,10 +348,53 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc)
 	/* now write it to the virtual boot catalog */
 	memcpy(de2->table, &valid_desc, 32);

-	for (current_boot_entry = first_boot_entry, offset = sizeof (valid_desc);
-		current_boot_entry != NULL;
-		current_boot_entry = current_boot_entry->next,
-		offset += sizeof (boot_desc_record)) {
+	/* Fill the first entry, since it's special and already has the
+	 * matching header via the validation header... */
+	offset = sizeof (valid_desc);
+	current_boot_entry = first_boot_entry;
+
+	if (offset >= SECTOR_SIZE) {
+#ifdef	USE_LIBSCHILY
+		comerrno(EX_BAD, "Too many El Torito boot entries\n");
+#else
+		fprintf(stderr,	"Too many El Torito boot entries\n");
+		exit(1);
+#endif
+	}
+	fill_boot_desc(&boot_desc_record, current_boot_entry);
+	memcpy(de2->table + offset, &boot_desc_record,
+				sizeof (boot_desc_record));
+
+	offset += sizeof(boot_desc_record);
+
+	for (current_boot_entry = current_boot_entry->next;
+			current_boot_entry != NULL;
+			current_boot_entry = current_boot_entry->next) {
+		struct eltorito_sectionheader_entry section_header;
+
+		if (offset >= SECTOR_SIZE) {
+#ifdef	USE_LIBSCHILY
+			comerrno(EX_BAD,
+			"Too many El Torito boot entries\n");
+#else
+			fprintf(stderr,
+			"Too many El Torito boot entries\n");
+			exit(1);
+#endif
+		}
+
+		memset(&section_header, '\0', sizeof(section_header));
+		if (current_boot_entry->next)
+			section_header.headerid[0] = EL_TORITO_SECTION_HEADER;
+		else
+			section_header.headerid[0] = EL_TORITO_LAST_SECTION_HEADER;
+
+		section_header.arch[0] = current_boot_entry->arch;
+		set_721(section_header.num_entries, 1);
+
+		memcpy(de2->table + offset, &section_header,
+					sizeof(section_header));
+		offset += sizeof(section_header);

 		if (offset >= SECTOR_SIZE) {
 #ifdef	USE_LIBSCHILY
@@ -365,6 +409,8 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc)
 		fill_boot_desc(&boot_desc_record, current_boot_entry);
 		memcpy(de2->table + offset, &boot_desc_record,
 					sizeof (boot_desc_record));
+		offset += sizeof (boot_desc_record);
+
 	}
 }/* get_torito_desc(... */

diff --git a/genisoimage/genisoimage.c b/genisoimage/genisoimage.c
index a5b0b46..8add1ac 100644
--- a/genisoimage/genisoimage.c
+++ b/genisoimage/genisoimage.c
@@ -47,6 +47,7 @@

 #include <mconfig.h>
 #include "genisoimage.h"
+#include "iso9660.h"
 #include <errno.h>
 #include <timedefs.h>
 #include <fctldefs.h>
@@ -523,6 +524,8 @@ static const struct ld_option ld_options[] =
 	'\0', NULL, "Set debug flag", ONE_DASH},
 	{{"eltorito-boot", required_argument, NULL, 'b'},
 	'b', "FILE", "Set El Torito boot image name", ONE_DASH},
+	{{"efi-boot", required_argument, NULL, 'e'},
+	'e', "FILE", "Set EFI boot image name", ONE_DASH},
 	{{"eltorito-alt-boot", no_argument, NULL, OPTION_ALT_BOOT},
 	'\0', NULL, "Start specifying alternative El Torito boot parameters", ONE_DASH},
 	{{"sparc-boot", required_argument, NULL, 'B'},
@@ -1502,6 +1505,7 @@ int main(int argc, char *argv[])
 			all_files = 0;
 			break;
 		case 'b':
+		case 'e':
 			do_sort++;		/* We sort bootcat/botimage */
 			use_eltorito++;
 			boot_image = optarg;	/* pathname of the boot image */
@@ -1517,6 +1521,10 @@ int main(int argc, char *argv[])
 #endif
 			}
 			get_boot_entry();
+			if (c == 'e')
+				current_boot_entry->arch = EL_TORITO_ARCH_EFI;
+			else
+				current_boot_entry->arch = EL_TORITO_ARCH_x86;
 			current_boot_entry->boot_image = boot_image;
 			break;
 		case OPTION_ALT_BOOT:
diff --git a/genisoimage/genisoimage.h b/genisoimage/genisoimage.h
index bbedfb0..76e5e21 100644
--- a/genisoimage/genisoimage.h
+++ b/genisoimage/genisoimage.h
@@ -293,6 +293,7 @@ struct deferred_write {
 struct eltorito_boot_entry_info {
 	struct eltorito_boot_entry_info *next;
 	char		*boot_image;
+	char		arch;
 	int		not_bootable;
 	int		no_emul_boot;
 	int		hard_disk_boot;
diff --git a/genisoimage/iso9660.h b/genisoimage/iso9660.h
index c74c2a9..c8b7a05 100644
--- a/genisoimage/iso9660.h
+++ b/genisoimage/iso9660.h
@@ -62,10 +62,14 @@ struct iso_volume_descriptor {
 #define	EL_TORITO_ARCH_x86	0
 #define	EL_TORITO_ARCH_PPC	1
 #define	EL_TORITO_ARCH_MAC	2
+#define	EL_TORITO_ARCH_EFI	0xef

 #define	EL_TORITO_BOOTABLE	0x88
 #define	EL_TORITO_NOT_BOOTABLE	0

+#define	EL_TORITO_SECTION_HEADER	0x90
+#define	EL_TORITO_LAST_SECTION_HEADER	0x91
+
 #define	EL_TORITO_MEDIA_NOEMUL	0
 #define	EL_TORITO_MEDIA_12FLOP	1
 #define	EL_TORITO_MEDIA_144FLOP	2
@@ -173,7 +177,7 @@ struct eltorito_validation_entry {
 struct eltorito_defaultboot_entry {
 	char boot_id			[ISODCL(1,    1)]; /* 711 */
 	char boot_media			[ISODCL(2,    2)];
-	char loadseg			[ISODCL(3,    4)]; /* 711 */
+	char loadseg			[ISODCL(3,    4)]; /* 712 */
 	char sys_type			[ISODCL(5,    5)];
 	char pad1			[ISODCL(6,    6)];
 	char nsect			[ISODCL(7,    8)];
@@ -181,6 +185,14 @@ struct eltorito_defaultboot_entry {
 	char pad2			[ISODCL(13,  32)];
 };

+/* El Torito Section Header Entry in boot catalog */
+struct eltorito_sectionheader_entry {
+	char headerid			[ISODCL(1,    1)]; /* 711 */
+	char arch			[ISODCL(2,    2)];
+	char num_entries		[ISODCL(3,    4)]; /* 711 */
+	char id				[ISODCL(5,   32)];
+};
+
 /*
  * XXX JS: The next two structures have odd lengths!
  * Some compilers (e.g. on Sun3/mc68020) padd the structures to even length.


code:
diff -up cdrkit-1.1.9/icedax/cdda2ogg.1.no_mp3 cdrkit-1.1.9/icedax/cdda2ogg.1
--- cdrkit-1.1.9/icedax/cdda2ogg.1.no_mp3	2009-06-15 14:48:44.930637082 +0200
+++ cdrkit-1.1.9/icedax/cdda2ogg.1	2009-06-15 14:50:35.596769274 +0200
@@ -1,12 +1,11 @@
 '\"
 .TH "cdda2ogg" "1"
 .SH "NAME"
-cdda2ogg, cdda2mp3 \(em extract audio CD audio tracks and encode them
+cdda2ogg \(em extract audio CD audio tracks and encode them
 .SH "SYNOPSIS"
 .PP
 .B cdda2ogg
 .PP
-.B cdda2mp3
 .SH "DESCRIPTION"
 .PP
 .B cdda2ogg is a simple script that uses the
@@ -15,9 +14,6 @@ command to extract all audio tracks with
 .B icedax <fileprefix>
 command and encode them using the
 .B ogg123
-respective
-.I <censored>
-MP3
 encoder. The scripts are not intended to be full-featured music archiving
 programs, but only for quick storing of few audio data.
 It does not use databases like CDDB or have any extra features. You may look
@@ -36,8 +32,6 @@ for more information.
 .SH "CONFIGURATION"
 .PP
 .B cdda2ogg
-and
-.B cdda2mp3
 have predefined values for reading and labeling of the target files.
 You can overwrite them with following environment variables:

@@ -65,11 +59,11 @@ Additional options passed to
 The base part of the filename of resulting audio files. This can also be specified as the first argument to the script.

 .PP
-See cdda2ogg (cdda2mp3) script file to get the default values
+See cdda2ogg script file to get the default values
 .PP
 System administrator can also set default values by creating of a shell
 include file, defining the variables for the POSIX shell, and storing them as
-/etc/default/cdda2ogg (resp. cdda2mp3).
+/etc/default/cdda2ogg.
 .SH "EXAMPLES"
 .PP
 .B CDDA_DEVICE=/dev/cdrom1 cdda2ogg


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>cdrkit</Name>
        <Homepage>http://cdrkit.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Suite of programs for CD/DVD recording.</Summary>
        <Description>Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction.</Description>
        <Archive sha1sum="3f7ddc06db0272942e1a4cd98c3c96462df77387" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/cdrkit/cdrkit-1.1.11.tar.gz/efe08e2f3ca478486037b053acd512e9/cdrkit-1.1.11.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libcdio-paranoia-devel</Dependency>
            <Dependency>cdparanoia-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>cdrkit-1.1.8-werror.patch</Patch>
            <Patch>cdrkit-1.1.9-efi-boot.patch</Patch>
            <Patch>cdrkit-1.1.9-no_mp3.patch</Patch>
            <Patch>cdrkit-1.1.9-buffer_overflow.patch</Patch>
            <Patch>cdrkit-1.1.10-build-fix.patch</Patch>
            <Patch>cdrkit-1.1.11-manpagefix.patch</Patch>
            <Patch>cdrkit-1.1.11-rootstat.patch</Patch>
            <Patch>cdrkit-1.1.11-usalinst.patch</Patch>
            <Patch>cdrkit-1.1.11-readsegfault.patch</Patch>
            <Patch>cdrkit-1.1.11-format.patch</Patch>
            <Patch>cdrkit-1.1.11-handler.patch</Patch>
            <Patch>cdrkit-1.1.11-dvdman.patch</Patch>
            <Patch>cdrkit-1.1.11-paranoiacdda.patch</Patch>
            <Patch>cdrkit-1.1.11-utf8.patch</Patch>
            <Patch>cdrkit-1.1.11-cmakewarn.patch</Patch>
            <Patch>cdrkit-1.1.11-memset.patch</Patch>
            <Patch>cdrkit-1.1.11-ppc64le_elfheader.patch</Patch>
            <Patch>cdrkit-1.1.11-werror_gcc5.patch</Patch>
            <Patch>cdrkit-1.1.11-devname.patch</Patch>
            <Patch>cdrkit-1.1.11-sysmacros.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>cdrkit</Name>
        <RuntimeDependencies>
            <Dependency>file</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>cdparanoia</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <Conflicts>
            <Package>cdrtools</Package>
        </Conflicts>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-29</Date>
            <Version>1.1.11</Version>
            <Comment>Rebuild for new toolchain, add patches</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-25</Date>
            <Version>1.1.11</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-09-14</Date>
            <Version>1.1.11</Version>
            <Comment>First release</Comment>
            <Name>Burak Fazıl Ertürk</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>cdrkit</Name>
        <Summary xml:lang="en">Suite of programs for CD/DVD recording.</Summary>
        <Description xml:lang="en">Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.optical</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    pisitools.dosed("Makefile.m4", "^CFLAGS.*\+=\$\(WARN\).*", "CFLAGS=" + get.CFLAGS())
    pisitools.dosed("Makefile.m4", "^CXXFLAGS+=\$\(WARN\).*", "CXXFLAGS=" + get.CXXFLAGS() + " -fno-exceptions")

def build():
    autotools.make("CC='%s' CXX='%s'" % (get.CC(), get.CXX()))

def install():
    pisitools.dobin("dvd+rw-booktype")
    pisitools.dobin("dvd+rw-format")
    pisitools.dobin("dvd+rw-mediainfo")
    pisitools.dobin("dvd-ram-control")
    pisitools.dobin("growisofs")

    pisitools.dohtml(".")
    pisitools.doman("growisofs.1")


code:
--- ./growisofs_mmc.cpp.joe	2006-04-27 20:45:00.788446635 +0200
+++ ./growisofs_mmc.cpp	2006-04-27 20:46:01.666824300 +0200
@@ -1412,9 +1412,7 @@
     blocks += 15, blocks &= ~15;

     if (blocks <= split)
-	fprintf (stderr,":-( more than 50%% of space will be *wasted*!\n"
-			"    use single layer media for this recording\n"),
-	exit (FATAL_START(EMEDIUMTYPE));
+	fprintf (stderr,":-? more than 50%% of space will be *wasted*!\n");

     blocks /= 16;
     blocks += 1;


code:
--- dvd/transport.hxx~	2008-03-25 21:24:47.000000000 -0400
+++ dvd/transport.hxx	2008-03-25 21:25:36.000000000 -0400
@@ -116,7 +116,7 @@
 extern "C" char *plusminus_locale()
 { static class __plusminus {
     private:
-	char str[4];
+	char str[MB_LEN_MAX];
     public:
 	__plusminus()	{   setlocale(LC_CTYPE,ENV_LOCALE);
 			    int l = wctomb(str,(wchar_t)(unsigned char)'�');


code:
--- transport.hxx	2008-01-23 12:01:45.000000000 +0200
+++ transport.hxx	2008-01-23 12:02:12.000000000 +0200
@@ -16,6 +16,7 @@
 #include <fcntl.h>
 #include <poll.h>
 #include <sys/time.h>
+#include <limits.h>

 inline long getmsecs()
 { struct timeval tv;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>dvd+rw-tools</Name>
        <Homepage>http://fy.chalmers.se/~appro/linux/DVD+RW/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Tools for DVD+RW/-RW drives</Summary>
        <Description>dvd+rw-tools is a set of tools to work with DVD+-RW drives.</Description>
        <Archive sha1sum="6400e013934ff589b4b224eced03fd9f42ed719b" type="targz">http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz</Archive>
        <Patches>
            <Patch level="1">dvd+rw-tools-7.0-dvddl.patch</Patch>
            <Patch level="1">dvd+rw-tools-7.0-wctomb.patch</Patch>
            <Patch level="1">dvd+rw-tools-7.0-wexit.patch</Patch>
            <Patch>gcc-4.3.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>dvd+rw-tools</Name>
        <RuntimeDependencies>
            <!-- For growisofs' mkisofs dependency -->
            <Dependency>cdrkit</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-13</Date>
            <Version>7.1</Version>
            <Comment>Rebuild with new toolchain.</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-10-09</Date>
            <Version>7.1</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>dvd+rw-tools</Name>
        <Summary xml:lang="tr">DVD+RW/-RW sürücüler için birtakım araçlar</Summary>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import kde5

def setup():
    kde5.configure()

def build():
    kde5.make()

def install():
    kde5.install()

    pisitools.dodoc("COPYING*", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>k3b</Name>
        <Homepage>http://www.k3b.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>CD/DVD burning application for KDE4</Summary>
        <Description>K3b provides a comfortable user interface to perform most CD/DVD burning tasks. While the experienced user can take influence in all steps of the burning process the beginner may find comfort in the automatic settings and the reasonable k3b defaults which allow a quick start.</Description>
        <Archive sha1sum="98847e958c1208a2083f28faa3b9308f412b7d7e" type="tarxz">https://download.kde.org/stable/applications/17.08.3/src/k3b-17.08.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>karchive-devel</Dependency>
            <Dependency>kconfig-devel</Dependency>
            <Dependency>kcoreaddons-devel</Dependency>
            <Dependency>kdoctools-devel</Dependency>
            <Dependency>kfilemetadata-devel</Dependency>
            <Dependency>ki18n-devel</Dependency>
            <Dependency>kiconthemes-devel</Dependency>
            <Dependency>kjobwidgets-devel</Dependency>
            <Dependency>kcmutils-devel</Dependency>
            <Dependency>kio-devel</Dependency>
            <Dependency>knotifications-devel</Dependency>
            <Dependency>knewstuff-devel</Dependency>
            <Dependency>knotifyconfig-devel</Dependency>
            <Dependency>kservice-devel</Dependency>
            <Dependency>solid-devel</Dependency>
            <Dependency>kwidgetsaddons-devel</Dependency>
            <Dependency>kxmlgui-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-webkit-devel</Dependency>
            <Dependency>qt5-location-devel</Dependency>
            <Dependency>libsamplerate-devel</Dependency>
            <Dependency>cdparanoia-devel</Dependency>
            <Dependency>libsndfile-devel</Dependency>
            <Dependency>libdvdread-devel</Dependency>
            <Dependency>libkcddb</Dependency>
            <Dependency>libmpcdec-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>vcdimager-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>dvd+rw-tools</Dependency>
            <Dependency>libmad-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>taglib-devel</Dependency>
            <Dependency>flac-devel</Dependency>
            <Dependency>lame-devel</Dependency>
            <Dependency>sox-devel</Dependency>
            <Dependency>cdrkit</Dependency>
            <Dependency>cdrdao</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>k3b</Name>
        <RuntimeDependencies>
            <Dependency>kio</Dependency>
            <Dependency>flac</Dependency>
            <Dependency>lame</Dependency>
            <Dependency>ki18n</Dependency>
            <Dependency>solid</Dependency>
            <Dependency>ffmpeg</Dependency>
            <Dependency>cdrkit</Dependency>
            <Dependency>cdrdao</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libmad</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>taglib</Dependency>
            <Dependency>kconfig</Dependency>
            <Dependency>kxmlgui</Dependency>
            <Dependency>karchive</Dependency>
            <Dependency>kcmutils</Dependency>
            <Dependency>kservice</Dependency>
            <Dependency>libkcddb</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>knewstuff</Dependency>
            <Dependency>libmpcdec</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>kbookmarks</Dependency>
            <Dependency>libdvdread</Dependency>
            <Dependency>libsndfile</Dependency>
            <Dependency>qt5-webkit</Dependency>
            <Dependency>kcompletion</Dependency>
            <Dependency>kcoreaddons</Dependency>
            <Dependency>kiconthemes</Dependency>
            <Dependency>kjobwidgets</Dependency>
            <Dependency>dvd+rw-tools</Dependency>
            <Dependency>kfilemetadata</Dependency>
            <Dependency>knotifyconfig</Dependency>
            <Dependency>libsamplerate</Dependency>
            <Dependency>kconfigwidgets</Dependency>
            <Dependency>knotifications</Dependency>
            <Dependency>kwidgetsaddons</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="config">/etc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-11-15</Date>
            <Version>17.08.3</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-10-24</Date>
            <Version>17.08.2</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-04-29</Date>
            <Version>20160911</Version>
            <Comment>rebuild</Comment>
            <Name>Ali Algül</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-12-10</Date>
            <Version>20160911</Version>
            <Comment>First Release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>k3b</Name>
        <Summary xml:lang="tr">KDE için CD/DVD yazma uygulaması</Summary>
        <Description xml:lang="tr">K3b her türlü CD/DVD yazma işlevini rahat bir kullanıcı arayüzüyle sunar. Tecrübeli kullanıcılar yazma işleminin her adımına müdahale edebilirken, yeni başlayanlar ise k3b'nin sağladığı öntanımlı ayarlar sayesinde hızlı bir başlangıç yapabilirler.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    #autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --disable-ldconfig-at-install \
                         --with-gnu-ld \
                         --disable-test")

def build():
    autotools.make()

def install():
    autotools.install()
    pisitools.dodoc("AUTHORS", "COPYING", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libburn</Name>
        <Homepage>http://libburnia-project.org</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <PartOf>hardware.optical</PartOf>
        A library for reading, mastering and writing optical discs
        <Description>Libburn is an open-source library for reading, mastering and writing optical discs.</Description>
        <Archive sha1sum="3ac1e9db9e5b1dba9572c41f6a93f3170f1a368b" type="targz">http://files.libburnia-project.org/releases/libburn-1.4.8.tar.gz</Archive>
    </Source>

    <Package>
        <Name>libburn</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libburn-devel</Name>
        Development files for libburn
        <RuntimeDependencies>
            <Dependency release="current">libburn</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig/libburn-1.pc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-03</Date>
            <Version>1.4.8</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-25</Date>
            <Version>1.4.6</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.4.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>1.4.2</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libburn</Name>
        Optik diskleri okumak, idare etmek ve yazmak için kitaplıklar
        <Description xml:lang="tr">libburn, optik diskleri okumak, idare etmek ve yazmak için yazılmış, açık kaynak kodlu bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>libburn-devel</Name>
        libburn için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static \
                         --disable-example-progs \
                         --enable-cpp-progs \
                         --with-cd-paranoia-name=libcdio-paranoia")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("-j1 DESTDIR=%s" % (get.installDIR()))

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "THANKS")


code:
http://savannah.gnu.org/bugs/index.php?38273
http://bugs.gentoo.org/455374

--- configure.ac
+++ configure.ac
@@ -394,7 +394,7 @@
 dnl
 dnl Newest automake workaround - needed for multi-language manual pages
 dnl
-AC_SUBST(mkdir_p)
+AC_SUBST(mkdir_p, "${MKDIR_P}")

 dnl
 dnl Output configuration files


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libcdio-paranoia</Name>
        <Homepage>http://www.gnu.org/software/libcdio/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3+</License>
        <License>GPLv2+</License>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        CD paranoia libraries from libcdio
        <Description>An advanced CDDA reader with error correction.</Description>
        <Archive sha1sum="9c40cf6a706e881a52dc417686669d500ddd3115" type="tarbz2">mirrors://gnu/libcdio/libcdio-paranoia-10.2+0.93+1.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>libcdio-devel</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>libcdio-paranoia</Name>
        <RuntimeDependencies>
            <Dependency>libcdio</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>libcdio-paranoia-devel</Name>
        Development files for libcdio-paranoia
        <RuntimeDependencies>
            <Dependency release="current">libcdio-paranoia</Dependency>
            <Dependency>libcdio-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>0.93_p1</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.90_p1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-02-25</Date>
            <Version>0.90_p1</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools

def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static \
                         --with-cd-paranoia-name=libcdio-paranoia \
                         --disable-vcd-info \
                         --enable-cpp-progs \
                         --disable-rpath")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % (get.installDIR()))

    pisitools.dosed("%s/usr/include/cdio/version.h" % get.installDIR(), '%s[^"]+' % get.srcVERSION(), get.srcVERSION())
    pisitools.dosed("%s/usr/include/cdio/cdio_config.h" % get.installDIR(), "#define\s(CDIO_LIBCDIO_SOURCE_PATH).*", r"#undef \1")

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "THANKS")


code:
diff -Naur libcdio-0.83-orig/example/C++/OO/Makefile.in libcdio-0.83/example/C++/OO/Makefile.in
--- libcdio-0.83-orig/example/C++/OO/Makefile.in	2011-10-27 18:02:31.000000000 +1000
+++ libcdio-0.83/example/C++/OO/Makefile.in	2012-02-18 11:10:07.369277231 +1000
@@ -315,15 +315,15 @@

 isofile2_SOURCES = isofile2.cpp
 isofile2_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \
-	              $(LIBCDIOPP_LIBS) $(LTLIBICONV)
+	              $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)

 isolist_SOURCES = isolist.cpp
 isolist_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \
-	              $(LIBCDIOPP_LIBS) $(LTLIBICONV)
+	              $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)

 iso4_SOURCES = iso4.cpp
 iso4_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \
-	              $(LIBCDIOPP_LIBS) $(LTLIBICONV)
+	              $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)

 mmc1_SOURCES = mmc1.cpp
 mmc1_DEPENDENCIES = $(LIBCDIO_DEPS)


code:
From 6c0251d145e44b7cdfeb9767c615646fb8f51320 Mon Sep 17 00:00:00 2001
From: Christophe Fergeau <cfergeau@redhat.com>
Date: Thu, 22 Nov 2012 13:53:15 +0100
Subject: [PATCH] udf: Don't return freed memory from udf_fopen

When trying to open a file located in the root directory of the
UDF filesystem, we call udf_ff_open with the dirent corresponding
to the root dir and the filename. In this case, udf_ff_open will
return the same dirent as the one that was passed as argument, so
we must not free it as we'll be returning it.
This causes a crash with iso-read when trying to read a file located
at the root of the image.
---
 lib/udf/udf_fs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/udf/udf_fs.c b/lib/udf/udf_fs.c
index 5f5add7..1e0601e 100644
--- a/lib/udf/udf_fs.c
+++ b/lib/udf/udf_fs.c
@@ -257,7 +257,8 @@ udf_fopen(udf_dirent_t *p_udf_root, const char *psz_name)
 		       p_udf_root->psz_name, p_udf_root->b_dir,
 		       p_udf_root->b_parent);
       p_udf_file = udf_ff_traverse(p_udf_dirent, psz_token);
-      udf_dirent_free(p_udf_dirent);
+      if (p_udf_file != p_udf_dirent)
+        udf_dirent_free(p_udf_dirent);
     }
     else if ( 0 == strncmp("/", psz_name, sizeof("/")) ) {
       return udf_new_dirent(&p_udf_root->fe, p_udf_root->p_udf,
--
1.7.2.5


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libcdio</Name>
        <Homepage>http://www.gnu.org/software/libcdio/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A library to encapsulate CD-ROM reading and control
        <Description>This library provides an interface for CD-ROM access. It can be used by applications that need OS- and device-independent access to CD-ROM devices.</Description>
        <Archive sha1sum="921f17842ea2bf3cd06ab3616849555aaae903ad" type="targz">mirrors://gnu/libcdio/libcdio-0.94.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgcc</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">libcdio-0.83-linking.patch</Patch>

        </Patches>
    </Source>

    <Package>
        <Name>libcdio</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>libcdio-devel</Name>
        Development files for libcdio
        <RuntimeDependencies>
            <Dependency release="current">libcdio</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-05</Date>
            <Version>0.94</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.92</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>0.92</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libcdio</Name>
        CD-ROM okuma ve kontrol kitaplığının küçültülmüş sürümü
        Un librairie encapsulant la lecture et le controle du lecteur CD-ROM.
        <Description xml:lang="tr">GNU kompakt disk girdi ve kontrol kitaplığı (libcdio) CD-ROM ve CD kalıplarına ulaşım için gerekli bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>libcdio-devel</Name>
        libcdio için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.configure("--prefix=/usr   \
                         --enable-static  \
                         --disable-ldconfig-at-install \
                         --enable-pkg-check-modules")

def build():
    autotools.make()

def install():
    autotools.install()
    pisitools.dodoc("AUTHORS", "COPYING", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libisoburn</Name>
        <Homepage>http://libburnia-project.org</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Frontend for libraries libburn and libisofs
        <Description>Frontend for libraries libburn and libisofs</Description>
        <Archive sha1sum="7f5a6d59fca0fb8ead46c72ab3204af4a14a26ac" type="targz">http://files.libburnia-project.org/releases/libisoburn-1.4.8.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libburn-devel</Dependency>
            <Dependency>libisofs-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>acl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libisoburn</Name>
        <RuntimeDependencies>
            <Dependency>acl</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>libburn</Dependency>
            <Dependency>libisofs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libisoburn-devel</Name>
        Development files for libisoburn
        <RuntimeDependencies>
            <Dependency release="current">libisoburn</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-03</Date>
            <Version>1.4.8</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-2</Date>
            <Version>1.4.6</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.4.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-15</Date>
            <Version>1.4.2</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libisoburn</Name>
        Libburn ve libisofs kütüphanelerini kullanmak için bir arayüz.
        <Description xml:lang="tr">libisoburn, libburn ve libisofs kütüphanelerini kullanmak için bir arayüzdür.</Description>
    </Source>

    <Package>
        <Name>libisoburn-devel</Name>
        libisoburn için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING",  "README")


code:
Index: lsdvd-0.16/configure.in
===================================================================
--- lsdvd-0.16.orig/configure.in
+++ lsdvd-0.16/configure.in
@@ -10,8 +10,8 @@ fi

 AC_CHECK_LIB(dvdread, DVDOpen, , AC_MSG_ERROR([libdvdread not found!]))
 AC_MSG_CHECKING([for dvdread/ifo_read.h])
-AC_TRY_COMPILE([#include <dvdread/ifo_read.h>
-		#include <stdint.h>], ,
+AC_TRY_COMPILE([#include <stdint.h>
+		#include <dvdread/ifo_read.h>], ,
 	AC_MSG_RESULT([yes]),
 	AC_MSG_RESULT([no])
 	AC_MSG_ERROR([Header files for dvdread not found]))
Index: lsdvd-0.16/lsdvd.c
===================================================================
--- lsdvd-0.16.orig/lsdvd.c
+++ lsdvd-0.16/lsdvd.c
@@ -13,6 +13,7 @@
  *  2003-04-19  Cleanups get_title_name, added dvdtime2msec, added helper macros,
  *			  output info structures in form of a Perl module, by Henk Vergonet.
  */
+#include <stdint.h>
 #include <dvdread/ifo_read.h>
 #include <string.h>
 #include <sys/stat.h>


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lsdvd</Name>
        <Homepage>http://untrepid.com/lsdvd</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Small application for listing the contents of DVDs</Summary>
        <Description>lsdvd is a small application which lists the contents of DVDs to your terminal.</Description>
        <Archive sha1sum="aa44b8c33c66df2a131e469988ced2b11ebf9aab" type="targz">mirrors://sourceforge/lsdvd/lsdvd-0.17.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libdvdread-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--<Patch level="1">lsdvd-0.16-types.patch</Patch>-->
            <!--<Patch level="1">lsdvd-0.16-strip-trailing-spaces.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>lsdvd</Name>
        <RuntimeDependencies>
            <Dependency>libdvdread</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-07</Date>
            <Version>0.17</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.17</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>0.17</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lsdvd</Name>
        <Summary xml:lang="tr">DVD bilgilerini toplamaya yarayan bir araç</Summary>
        <Description xml:lang="tr">lsdvd, terminal üzerinden DVD'lerin içeriğini görüntülemeye yarayan basit bir araçtır.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools

def setup():
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release  \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DGTK3=ON \
      -DBURNING=LIBBURNIA ")

def build():
    cmaketools.make()

def install():
    cmaketools.install()

#pisitools.dodoc("AUTHORS", "ChangeLog", "INSTALL", "LICENSE", "TODO")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>simpleburn</Name>
        <Homepage>http://simpleburn.tuxfamily.org/</Homepage>
        <Packager>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>Cecill-2 license</License>
        <Icon>simpleburn</Icon>
        <IsA>app:gui</IsA>
        <Summary>A simple GTK+ application for burning CDs and DVDs</Summary>
        <Description>SimpleBurn is a minimalistic application for burning and extracting CDs and DVDs. It basically is a Cdrtools frontend and is designed in two parts: the GUI (GTK) and a BASH script that handle the requested actions.</Description>
        <Archive sha1sum="d7a707c6932abcd391e38b994ecb01c1796fce89" type="targz">http://simpleburn.tuxfamily.org/IMG/gz/simpleburn-1.8.3.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>cdparanoia-devel</Dependency>
            <Dependency>mpg123-devel</Dependency>
            <Dependency>pkgconfig</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>libisoburn-devel</Dependency>
            <Dependency>libdvdread-devel</Dependency>
            <Dependency>libburn-devel</Dependency>
            <Dependency>libisofs-devel</Dependency>
            <Dependency>libcdio-devel</Dependency>
            <Dependency>libcddb-devel</Dependency>
            <Dependency>cdrkit</Dependency>
            <Dependency>util-linux</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>simpleburn</Name>
        <RuntimeDependencies>
            <Dependency>gtk2</Dependency>
            <Dependency>gtk3</Dependency>
            <Dependency>glib2</Dependency>
            <!--Optional Dependencies-->
            <Dependency>lame</Dependency>
            <Dependency>cdparanoia</Dependency>
            <Dependency>libisoburn</Dependency>
            <Dependency>cdrdao</Dependency>
            <Dependency>libcdio</Dependency>
            <Dependency>libdvdread</Dependency>
            <Dependency>libcddb</Dependency>
            <Dependency>mpg123</Dependency>
            <Dependency>vorbis-tools</Dependency>
            <Dependency>cdrkit</Dependency>
            <Dependency>libcdio</Dependency>
            <!--Optional Dependencies-->
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="locale">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/simpleburn</Path>
            <Path fileType="data">/usr/share/icons</Path>
            <Path fileType="application">/usr/share/applications</Path>
            <Path fileType="doc">/usr/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-04-13</Date>
            <Version>1.8.3.1</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-04-13</Date>
            <Version>1.6.5</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.6.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-20</Date>
            <Version>1.6.5</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-19</Date>
            <Version>1.6.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.doman("acpi.1")
    pisitools.dodoc("AUTHORS", "ChangeLog", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>acpi</Name>
        <Homepage>http://sourceforge.net/projects/acpiclient/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Battery and thermal reporter</Summary>
        <Description>acpi is a small command-line tools that reports battery and thermal information.</Description>
        <Archive sha1sum="7c21939da5be4004fbb8f055ce02d928919a9fb7" type="targz">mirrors://sourceforge/acpiclient/acpiclient/1.7/acpi-1.7.tar.gz</Archive>
    </Source>

    <Package>
        <Name>acpi</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-06</Date>
            <Version>1.7</Version>
            <Comment>Rebuild</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-07-02</Date>
            <Version>1.7</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>acpi</Name>
        <Summary xml:lang="tr">ACPI sistemlerde pil ve sıcaklık bilgilerini tutar</Summary>
        <Description xml:lang="tr">Eski apm komutlarını ACPI sistemlerde verir, pil ve sıcaklık bilgilerini tutar.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def build():
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
    if get.ARCH() == "x86_64":
        autotools.make("BITS=64")
    else:
        autotools.make("BITS=32")

def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
    pisitools.dodoc("changes.txt")


code:
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH IASL 1 "October 14, 2005"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
iasl \- ACPI Source Language compiler/decompiler
.SH SYNOPSIS
.B iasl
.RI [ options ]
.RI [ "input file" ]
.SH DESCRIPTION
This manual page documents briefly the
.B iasl
command. The option list is taken from the iasl interactive help.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
.B iasl
is an ASL compiler and decompiler.

.SH OPTIONS

.PP
.SS General Output
.TP
.B \-p <prefix>
Specify filename prefix for all output files (including .aml)
.TP
.B \-vi
Less verbose errors and warnings for use with IDEs
.TP
.B \-vo
Enable optimization comments
.TP
.B \-vr
Disable remarks
.TP
.B \-vs
Disable signon

.PP
.SS AML Output Files
.TP
.B \-s<a|c>
Create AML in assembler or C source file (*.asm or *.c)
.TP
.B \-i<a|c>
Create assembler or C include file (*.inc or *.h)
.TP
.B \-t<a|c>
Create AML in assembler or C hex table (*.hex)

.PP
.SS AML Code Generation
.TP
.B \-oa
Disable all optimizations (compatibility mode)
.TP
.B \-of
Disable constant folding
.TP
.B \-oi
Disable integer optimization to Zero/One/Ones
.TP
.B \-on
Disable named reference string optimization
.TP
.B \-r<Revision>
Override table header Revision (1-255)

.PP
.SS Listings
.TP
.B \-l
Create mixed listing file (ASL source and AML) (*.lst)
.TP
.B \-ln
Create namespace file (*.nsp)
.TP
.B \-ls
Create combined source file (expanded includes) (*.src)

.PP
.SS AML Disassembler
.TP
.B \-d  [file]
Disassemble AML to ASL source code file (*.dsl)
.TP
.B \-dc [file]
Disassemble AML and immediately compile it
.br
(Obtain DSDT from current system if no input file)
.TP
.B \-e
Generate External() statements for unresolved symbols
.TP
.B \-g
Get ACPI tables and write to files (*.dat)

.PP
.SS Miscellaneous
.TP
.B \-a
Verify source file is entirely ASCII text (0x00-0x7F)

.PP
.SS Help
.TP
.B \-h
Additional help and compiler debug options
.TP
.B \-hc
Display operators allowed in constant expressions
.TP
.B \-hr
Display ACPI reserved method names

.SH AUTHOR
iasl was written by Robert Moore <robert.moore@intel.com>.
.PP
This manual page was written by Mattia Dongili <malattia@debian.org>,
for the Debian project (but may be used by others).


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>acpica</Name>
        <Homepage>http://www.acpica.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>custom</License>
        <IsA>app:console</IsA>
        <Summary>ACPI debugging tools written by Intel</Summary>
        <Description>acpica contains an AML interpreter and debugger, ACPI namespace support, ACPI hardware and event support and a full ASL compiler and disassembler.</Description>
        <Archive sha1sum="821055093d9520528b5b4bd95a1e5a499c3ccf12" type="targz">https://acpica.org/sites/acpica/files/acpica-unix-20130117.tar.gz</Archive>
    </Source>

    <Package>
        <Name>acpica</Name>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/iasl.1">iasl.1</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/doc/acpica/LICENSE">LICENSE</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-07</Date>
            <Version>0.0_20130117</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.0_20130117</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-03-05</Date>
            <Version>0.0_20130117</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>acpica</Name>
        <Summary xml:lang="tr">Intel ACPI hata ayıklama araçları</Summary>
        <Description xml:lang="tr">acpica, AML yorumlayıcısı, AML hata ayıklayıcısı, ACPI donanım ve olay desteği, ASL derleyicisi ve ASL disassembler gibi çeşitli ACPI araçları içeren bir pakettir.</Description>
    </Source>
</PISI>


code:
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc('README', 'COPYING')


code:
# -*- coding: utf-8 -*-
from comar.service import *

serviceType = "local"
serviceDesc = _({"en": "ACPI Daemon",
                 "tr": "ACPI Hizmeti"})
serviceDefault = "on"

PIDFILE = "/run/acpid.pid"

MSG_NO_PIDFILE = _({
                    "en" : "Could not reload acpid daemon as the PID file %s does not exist." % PIDFILE,
                    "tr" : "%s PID dosyası mevcut olmadığından acpid hizmeti yeniden yüklenemiyor." % PIDFILE,
                   })

@synchronized
def start():
    startService(command="/usr/sbin/acpid",
                 args=config.get("OPTIONS", ""),
                 donotify=True)

@synchronized
def stop():
    stopService(pidfile=PIDFILE,
                donotify=True)

def reload():
    import signal
    import os
    try:
        os.kill(int(open(PIDFILE, "r").read().strip()), signal.SIGHUP)
    except:
        fail(MSG_NO_PIDFILE)

def status():
    return isServiceRunning(pidfile=PIDFILE)


code:
#!/bin/bash
#
# check if a X session is running and active.
# If not, shut down the system
#
# Copyright (C) 2008 Holger Macht <hmacht@suse.de>
#
# This file is released under the GPLv2.
#

EXEC="/sbin/shutdown -h now"

# iterate over all sessions. If a active X session is found, do nothing
while read A; do
    SESSION=`echo $A | sed 's/\(Session[0-9]*\)://g'`
    [ -z "$SESSION" ] || continue

    SESSION=`echo $A | sed 's/\(Session[0-9]*\):/\1/g'`
    IS_X=`dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/$SESSION \
    org.freedesktop.ConsoleKit.Session.GetX11Display`

    # check if this is a X session, if not, go on
    DISP=`echo $IS_X | sed -e 's/^.* string "\(.*\)"/\1/'`
    [ -n "$DISP" ] || continue

    IS_ACTIVE=`dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/$SESSION \
    org.freedesktop.ConsoleKit.Session.IsActive`
    IS_ACTIVE=`echo $IS_ACTIVE | sed -e 's/^.* boolean \(.*\)$/\1/'`

    if [ "$IS_ACTIVE" = "true" -a -n "$DISP" ]; then
        # additional check, if none of these two apps are running, go on
        if [ -n "`pidof kded4`" -o -n "`pidof gnome-power-manager`" -o -n "`pidof guidance-power-manager`" -o -n "`pidof kpowersave`" -o -n "`pidof dalston-power-applet`" ]; then
            echo doing nothing...
            exit 0
        fi
    fi
done < <(ck-list-sessions)

logger -s -t acpid "Power Button pressed, executing $EXEC"
$EXEC


code:
diff -up acpid-2.0.15/Makefile.am.mk acpid-2.0.15/Makefile.am
--- acpid-2.0.15/Makefile.am.mk	2012-02-17 04:37:12.109907134 +0100
+++ acpid-2.0.15/Makefile.am	2012-03-16 11:27:15.127573044 +0100
@@ -20,7 +20,7 @@ acpi_listen_SOURCES = acpi_listen.c log.

 dist_man8_MANS = acpid.8 acpi_listen.8

-dist_doc_DATA = COPYING Changelog README TESTPLAN TODO
+dist_doc_DATA =

 # Just docs to add to the dist.
 # One problem with this is that it includes all files in the samples dir
diff -up acpid-2.0.15/Makefile.in.mk acpid-2.0.15/Makefile.in
--- acpid-2.0.15/Makefile.in.mk	2012-03-16 11:28:53.568421905 +0100
+++ acpid-2.0.15/Makefile.in	2012-03-16 11:29:21.679378750 +0100
@@ -276,7 +276,7 @@ acpid_SOURCES = acpid.c acpi_ids.c conne

 acpi_listen_SOURCES = acpi_listen.c log.c ud_socket.c
 dist_man8_MANS = acpid.8 acpi_listen.8
-dist_doc_DATA = COPYING Changelog README TESTPLAN TODO
+dist_doc_DATA =

 # Just docs to add to the dist.
 # One problem with this is that it includes all files in the samples dir


code:
# ACPID config to power down machine if powerbutton is pressed, but only if
# no gnome-power-manager, kded4, kpowersave, guidance-power-manager is running

event=button/power.*
action=/etc/acpi/actions/power.sh


code:
[Unit]
Description=ACPI Event Daemon
After=syslog.target

# This could probably benefit from socket activation, but honestly I think it
# is time for acpid to go away, and hence I am not planning to spend the time
# to add socket activation here. We use Type=forking to ensure that the
# communication sockets are in place before boot proceeds with any service
# needing this service. Would acpid support socket activation we could use
# Type=simple here.

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/acpid
ExecStart=/usr/sbin/acpid $OPTIONS

[Install]
WantedBy=multi-user.target


code:
# Configuration to turn on DPMS again on video activity, needed for some
# laptops. Disabled by default, uncomment if your laptop display stays blank
# after you close and open the lid.

#event=video.*
#action=/usr/sbin/vbetool dpms on


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>acpid</Name>
        <Homepage>http://sourceforge.net/projects/acpid2/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>service</IsA>
        <IsA>app:console</IsA>
        <Summary>ACPI daemon that dispatches ACPI events to user-space programs</Summary>
        <Description>acpid is a flexible and extensible daemon for ACPI (Advanced Configuration and Power Interface) event dispatching.</Description>
        <Archive sha1sum="a5cb34d53eb6965293c436db23dc81550273975b" type="tarxz">mirrors://sourceforge/acpid2/acpid-2.0.28.tar.xz</Archive>
        <Patches>
            <Patch level="1">fedora/acpid-2.0.15-mk.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>acpid</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/etc/acpi/actions</Path>
            <Path fileType="data">/etc/acpi/events</Path>
            <Path fileType="config">/etc/conf.d</Path>
            <Path fileType="data">/lib/systemd</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0755" target="/etc/acpi/actions/power.sh">acpid.power.sh</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/acpi/events/power.conf">fedora/acpid.power.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/acpi/events/video.conf">fedora/acpid.video.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/acpid">fedora/acpid.sysconfig</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/acpid.service">fedora/acpid.service</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-06</Date>
            <Version>2.0.28</Version>
            <Comment>Version bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-07-02</Date>
            <Version>2.0.27</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>acpid</Name>
        <Summary xml:lang="tr">ACPI hizmeti</Summary>
        <Description xml:lang="tr">acpid ACPI olaylarını kullanıcı uygulamalarına paslayan gelişmiş ve esnek bir sistem hizmetidir.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.powermanagement</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def build():
    autotools.make("PREFIX=/usr")

def install():
    autotools.rawInstall("PREFIX=/usr BUILD_STATIC_LIB=0 MANDIR=/%s PROG_EXTRA=sensord DESTDIR=%s user_install" % (get.manDIR(), get.installDIR()))

    pisitools.dodoc("CHANGES", "CONTRIBUTORS", "README")


code:
Submitted By:            Fernando de Oliveira <famobr at yahoo dot com dot br>
Date:                    2014-05-21
Initial Package Version: 3.3.5
Upstream Status:         Fixed
Origin:                  Upstream
URL:                     http://www.lm-sensors.org/changeset/6216
                         http://www.lm-sensors.org/changeset/6237
Description:             sensors.conf.default: Add support for NCT6779 and NCT6791
                         fancontrol: Deal with moving hwmon attributes

diff -Naur lm_sensors-3.3.5.orig/etc/sensors.conf.default lm_sensors-3.3.5/etc/sensors.conf.default
--- lm_sensors-3.3.5.orig/etc/sensors.conf.default	2012-01-31 11:25:29.057246000 -0300
+++ lm_sensors-3.3.5/etc/sensors.conf.default	2014-05-21 09:35:56.110779242 -0300
@@ -308,7 +308,7 @@
 #    set in8_max  3.0 * 1.10

-chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*"
+chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*" "nct6779-*" "nct6791-*"

     label in0 "Vcore"
     label in2 "AVCC"
diff -Naur lm_sensors-3.3.5.orig/prog/pwm/fancontrol lm_sensors-3.3.5/prog/pwm/fancontrol
--- lm_sensors-3.3.5.orig/prog/pwm/fancontrol	2013-05-23 11:09:22.043242000 -0300
+++ lm_sensors-3.3.5/prog/pwm/fancontrol	2014-05-21 09:35:56.109779277 -0300
@@ -206,6 +206,65 @@
 	return $outdated
 }

+function FixupDeviceFiles
+{
+	local DEVICE="$1"
+	local fcvcount pwmo tsen fan
+
+	let fcvcount=0
+	while (( $fcvcount < ${#AFCPWM[@]} )) # go through all pwm outputs
+	do
+		pwmo=${AFCPWM[$fcvcount]}
+		AFCPWM[$fcvcount]=${pwmo//$DEVICE\/device/$DEVICE}
+		if [ "${AFCPWM[$fcvcount]}" != "$pwmo" ]
+		then
+			echo "Adjusing $pwmo -> ${AFCPWM[$fcvcount]}"
+		fi
+		let fcvcount=$fcvcount+1
+	done
+
+	let fcvcount=0
+	while (( $fcvcount < ${#AFCTEMP[@]} )) # go through all temp inputs
+	do
+		tsen=${AFCTEMP[$fcvcount]}
+		AFCTEMP[$fcvcount]=${tsen//$DEVICE\/device/$DEVICE}
+		if [ "${AFCTEMP[$fcvcount]}" != "$tsen" ]
+		then
+			echo "Adjusing $tsen -> ${AFCTEMP[$fcvcount]}"
+		fi
+		let fcvcount=$fcvcount+1
+	done
+
+	let fcvcount=0
+	while (( $fcvcount < ${#AFCFAN[@]} )) # go through all fan inputs
+	do
+		fan=${AFCFAN[$fcvcount]}
+		AFCFAN[$fcvcount]=${fan//$DEVICE\/device/$DEVICE}
+		if [ "${AFCFAN[$fcvcount]}" != "$fan" ]
+		then
+			echo "Adjusing $fan -> ${AFCFAN[$fcvcount]}"
+		fi
+		let fcvcount=$fcvcount+1
+	done
+}
+
+# Some drivers moved their attributes from hard device to class device
+function FixupFiles
+{
+	local DEVPATH="$1"
+	local entry device
+
+	for entry in $DEVPATH
+	do
+		device=`echo "$entry" | sed -e 's/=[^=]*$//'`
+
+		if [ -e "$device/name" ]
+		then
+			FixupDeviceFiles "$device"
+		fi
+	done
+}
+
 # Check that all referenced sysfs files exist
 function CheckFiles
 {
@@ -306,6 +365,10 @@
 	echo "Configuration appears to be outdated, please run pwmconfig again" >&2
 	exit 1
 fi
+if [ "$DIR" = "/sys/class/hwmon" ]
+then
+	FixupFiles "$DEVPATH"
+fi
 CheckFiles || exit 1

 if [ -f "$PIDFILE" ]


code:
--- prog/pwm/fancontrol	2012-11-07 03:26:37.000000000 +0200
+++ prog/pwm/fancontrol	2013-03-22 18:15:00.566696011 +0200
@@ -297,7 +297,7 @@
 cd $DIR

 # Check for configuration change
-if [ "$DIR" != "/" ] && [ -z "$DEVPATH" -o -z "$DEVNAME" ]
+if [[ "$DIR" != "/"  && ( -z "$DEVPATH"  ||  -z "$DEVNAME" ) ]]
 then
 	echo "Configuration is too old, please run pwmconfig again" >&2
 	exit 1
@@ -337,7 +337,7 @@
 	# It didn't work, try pwmN_enable=1 pwmN=255
 	echo 1 > $ENABLE 2> /dev/null
 	echo $MAX > $1
-	if [ `cat $ENABLE` -eq 1 -a `cat $1` -ge 190 ]
+	if [ `cat $ENABLE` -eq 1 ] && [ `cat $1` -ge 190 ]
 	then
 		# Success
 		return 0
@@ -469,7 +469,7 @@
 		else
 		  # calculate the new value from temperature and settings
 		  pwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}"
-		  if [ $pwmpval -eq 0 -o $min_fanval -eq 0 ]
+		  if [ $pwmpval -eq 0 ] || [ $min_fanval -eq 0 ]
 		  then # if fan was stopped start it using a safe value
 		  	echo $minsa > $pwmo
 			# Sleep while still handling signals


code:
#
# /etc/conf.d/sensord
#

#Specify the interval between scanning for sensor alarms
INTERVAL=60s

#Specify the interval between logging all sensor readings
LOG_INTERVAL=30m


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lm_sensors</Name>
        <Homepage>http://www.lm-sensors.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        Hardware monitoring tools
        <Description>lm_sensors provides essential tools for monitoring the temperatures, voltages, and fans of Linux systems with hardware monitoring devices. It also contains scripts for sensor hardware identification and fan speed control.</Description>
        <Archive sha1sum="3e245b61a69756ea94f9c8a7c7614ec543970b8c" type="tarbz2">http://pkgs.fedoraproject.org/repo/pkgs/lm_sensors/lm_sensors-3.4.0.tar.bz2/c03675ae9d43d60322110c679416901a/lm_sensors-3.4.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>rrdtool-devel</Dependency>
        </BuildDependencies>
        <Patches>
             <Patch>lm_sensors-fancontrol.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>lm_sensors</Name>
        <RuntimeDependencies>
            <Dependency>dmidecode</Dependency>
            <Dependency>rrdtool</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>lm_sensors-devel</Name>
        Development files for lm_sensors
        <RuntimeDependencies>
            <Dependency release="current">lm_sensors</Dependency>
            <Dependency>rrdtool-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>3.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-10-02</Date>
            <Version>3.4.0</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lm_sensors</Name>
        Donanım sıcaklığı izleyicisi
        <Description xml:lang="tr">lm_sensors linux sistemlerdeki donanım izleyiciler ile birlikte termometreleri, voltajları ve fan devirlerini izleyen bir araçtır. Ayrıca, donanım ve fan kimliğini algılayan betikler içerir.</Description>
    </Source>

    <Package>
        <Name>lm_sensors-devel</Name>
        lm_sensors için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    # Drop man pages to regenerate them
    shelltools.unlink("man/*.[18]")

    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Install video quirks
    shelltools.copytree("../video-quirks", "%s/usr/lib/pm-utils" % get.installDIR())

    # Create some initial directories
    for d in ("locks", "storage"):
        pisitools.dodir("/run/pm-utils/%s" % d)

    pisitools.dodoc("COPYING", "ChangeLog", "AUTHORS")

    # nm >=0.8.2 has native udev suspend/resume support
    pisitools.remove("/usr/lib/pm-utils/sleep.d/55NetworkManager")

    # Remove hooks that cause hardware failure or don't make sense at all
    pisitools.remove("/usr/lib/pm-utils/power.d/harddrive")
    pisitools.remove("/usr/lib/pm-utils/power.d/disable_wol")


code:
From 640b53438c20818b3e344343b58b1f1765606a85 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin.pitt@ubuntu.com>
Date: Mon, 31 Jan 2011 15:30:01 +0100
Subject: [PATCH] 49bluetooth: Wait for btusb module to get unused

The 49bluetooth hook disables /proc/acpi/ibm/bluetooth but this isn't
synchronous, i. e. it doesn't wait until the module usage count actually drops
to 0. Due to that, it's impossible to add btusb to SUSPEND_MODULES (on some
models/older kernels you need to do that to fix suspend problems), as at that
point the module is still in use.

On my system (ThinkPad X201) the module takes between 0.3 and 0.5 seconds to
unload, so use 100 ms wait steps with a timeout of 2 seconds.

Bug: https://bugs.freedesktop.org//show_bug.cgi?id=33759
Bug-Ubuntu: https://launchpad.net/bugs/698331
---
 pm/sleep.d/49bluetooth |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth
index d46ba49..0dc1909 100755
--- a/pm/sleep.d/49bluetooth
+++ b/pm/sleep.d/49bluetooth
@@ -12,6 +12,15 @@ suspend_bluetooth()
 	if grep -q enabled /proc/acpi/ibm/bluetooth; then
 		savestate ibm_bluetooth enable
 		echo disable > /proc/acpi/ibm/bluetooth
+
+		# wait for up to 2 seconds for the module to actually get
+		# unused
+		TIMEOUT=20
+		while [ $TIMEOUT -ge 0 ]; do
+		    [ `cat /sys/module/btusb/refcnt` = 0 ] && break
+		    TIMEOUT=$((TIMEOUT-1))
+		    sleep 0.1
+		done
 	else
 		savestate ibm_bluetooth disable
 	fi
--
1.7.2.3


code:
Description: Disable SATA link power management by default, as it still causes disk errors and corruptions on many hardware.
Author: Martin Pitt <martin.pitt@ubuntu.com>
Bug-Ubuntu: https://launchpad.net/bugs/539467

Index: pm-utils/pm/power.d/sata_alpm
===================================================================
--- pm-utils.orig/pm/power.d/sata_alpm	2011-02-01 15:53:09.164867778 +0100
+++ pm-utils/pm/power.d/sata_alpm	2011-02-01 15:53:28.954867786 +0100
@@ -2,7 +2,7 @@

 . "${PM_FUNCTIONS}"

-SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-true}
+SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-false}

 help() {
 cat <<EOF
@@ -16,7 +16,7 @@

 This hook has 1 parameter:
 SATA_ALPM_ENABLE = whether to use SATA ALPM on battery.
-Defaults to "true".
+Defaults to "false".

 EOF
 }


code:
From: Florian Kriener <florian@kriener.org>
To: submit@bugs.debian.org
Subject: [pm-utils] wrong path in intel-audio-powersave (and a small bug)
Date: Sat, 25 Sep 2010 11:27:30 +0200

In the script intel-audio-powersave is this loop

for dev in /sys/module/snd_*/parameters/power_save; do
	[ -w "$dev/parameters/power_save" ] || continue
     printf "Setting power savings for $s to %d..." "$dev##*/" "$1"
	echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
done

I think it should be

for dev in /sys/module/snd_*; do
	[ -w "$dev/parameters/power_save" ] || continue
     printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"
	echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
done

This fixes the two bugs.

diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave
index 36675a8..da63e40 100644
--- a/pm/power.d/intel-audio-powersave
+++ b/pm/power.d/intel-audio-powersave
@@ -20,9 +20,9 @@ EOF

 audio_powersave() {
     [ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA
-    for dev in /sys/module/snd_*/parameters/power_save; do
+    for dev in /sys/module/snd_*; do
 	[ -w "$dev/parameters/power_save" ] || continue
-	printf "Setting power savings for $s to %d..." "$dev##*/" "$1"
+	printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"
 	echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
     done
 }


code:
Author: James Westby <james.westby@ubuntu.com>
Description: Do not clear the log file on each operation, but instead append to it.
 This makes debugging of several suspends much easier.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
Bug-Ubuntu: https://launchpad.net/bugs/410352

Index: pm-utils/pm/pm-functions.in
===================================================================
--- pm-utils.orig/pm/pm-functions.in	2010-07-05 18:41:21.118322244 +0200
+++ pm-utils/pm/pm-functions.in	2010-07-05 18:41:24.126325221 +0200
@@ -271,7 +271,7 @@
 		return 1
 	fi
 	export LOGGING=true
-	exec > "$1" 2>&1
+	exec >> "$1" 2>&1
 }

 check_suspend() { [ -n "$SUSPEND_MODULE" ]; }


code:
#!/bin/sh

# Check for and abort a hibernate if the kernel indicates it has been
# updated, as we will be completly unable to resume.
if [ "$1" = "hibernate" ] && [ -f "/run/do-not-hibernate" ]; then
	echo "kernel update inhibits hibernate (/run/do-not-hibernate present)"
	exit 1
fi


code:
#!/bin/sh
# Launch plymouth daemon if necessary

. "${PM_FUNCTIONS}"

# Fail if no plymouthd
command_exists plymouthd || exit $NA

# Check for splash parameter in /proc/cmdline
grep -qw "splash" /proc/cmdline || exit $NA

launch_plymouthd()
{
    /sbin/plymouthd --mode=suspend
    return 0
}

case "$1" in
    hibernate|suspend)
        launch_plymouthd
        ;;
    *) exit $NA
        ;;
esac


code:
#!/bin/bash
# vim:noexpandtab
#
#    Author: Till Maas <opensource till name>
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

PATH=/sbin:/bin:/usr/sbin:/usr/bin

source "${PM_FUNCTIONS}"
source /etc/pm/config.d/hd-apm-restore.conf

HD_APM_DEVICES=""
for udi in $(hal-find-by-capability --capability storage)
do
    drive_type=$(hal-get-property --udi "${udi}" --key storage.drive_type)
    if [ "${drive_type}" == "disk" ]
    then
        HD_APM_DEVICES+="$(hal-get-property --udi "${udi}" --key block.device | sed 's,^/dev/,,') "

    fi
done

case "$1" in
	hibernate|suspend)
		for DEVICE in ${HD_APM_DEVICES}
		do
			HD_APM_FEATURE=$(hdparm -I "/dev/${DEVICE}" | grep "Advanced Power Management feature set")
			if [[ "${HD_APM_FEATURE}" != "" ]]
			then
				if (echo "${HD_APM_FEATURE}" | grep -q "*" )
				then
					HD_APM_LEVEL=$(hdparm -I "/dev/${DEVICE}" | grep "Advanced power management level" | cut -d" " -f 5)
				else
					HD_APM_LEVEL=255
				fi
				if [[ "${HD_APM_LEVEL}" != "unknown" ]]
				then
					echo "saving level ${HD_APM_LEVEL} for device ${DEVICE}"
					savestate "${DEVICE}" "${HD_APM_LEVEL}"
				else
					echo "Advanced Power Management value of device ${DEVICE} unknown"
				fi
			else
				echo "Advanced Power Management not supported by device ${DEVICE}."
			fi
		done
		;;
	thaw|resume)
		for DEVICE in ${HD_APM_DEVICES}
		do
			HD_APM_LEVEL=$(restorestate "${DEVICE}")
			if [[ "${HD_APM_LEVEL}" != "" ]]
			then
				echo "restoring level ${HD_APM_LEVEL} for device ${DEVICE}"
				hdparm -B "${HD_APM_LEVEL}" "/dev/${DEVICE}"
			fi
		done
		;;
	*)
		;;
esac

exit $?


code:
Index: pm-utils-1.4.1/pm/module.d/uswsusp
===================================================================
--- pm-utils-1.4.1.orig/pm/module.d/uswsusp
+++ pm-utils-1.4.1/pm/module.d/uswsusp
@@ -82,6 +82,7 @@ fi
 if [ -z "$HIBERNATE_MODULE" ] && \
 	[ -f /sys/power/disk ] && \
 	grep -q disk /sys/power/state && \
+	grep -q "resume=" /proc/cmdline && \
 	[ -c /dev/snapshot ] &&
 	command_exists s2disk; then
 	HIBERNATE_MODULE="uswsusp"
Index: pm-utils-1.4.1/pm/pm-functions.in
===================================================================
--- pm-utils-1.4.1.orig/pm/pm-functions.in
+++ pm-utils-1.4.1/pm/pm-functions.in
@@ -306,7 +306,8 @@ fi

 if [ -z "$HIBERNATE_MODULE" ] && \
 	[ -f /sys/power/disk ] && \
-	grep -q disk /sys/power/state; then
+	grep -q disk /sys/power/state && \
+	grep -q "resume=" /proc/cmdline; then
 	HIBERNATE_MODULE="kernel"
 	do_hibernate()
 	{