Browse code

Adding procmail and dmidecode packages

Change-Id: I1fa4748c17e5bd03893ccca18829e6d3a131c557
Reviewed-on: http://photon-jenkins.eng.vmware.com/90
Reviewed-by: Sharath George
Tested-by: jenkins-photon <wangnan2015@hotmail.com>

dthaluru authored on 2015/11/03 11:51:09
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
0
+Summary:	Tool to analyze BIOS DMI data
1
+Name:		dmidecode
2
+Version:	3.0
3
+Release:	1%{?dist}
4
+License:	GPLv2+
5
+URL:		http://www.nongnu.org/dmidecode/
6
+Group:		System Environment/Base
7
+Source0:	http://download.savannah.gnu.org/releases/dmidecode/%{name}-%{version}.tar.gz
8
+%define sha1 dmidecode=1bc5e9a400729f50aba5b441d14131aaa1ed42dd
9
+Vendor:		VMware, Inc.
10
+Distribution:	Photon
11
+%description
12
+Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard. This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details of varying level of interest and reliability depending on the manufacturer. This will often include usage status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of I/O ports (e.g. serial, parallel, USB).
13
+
14
+%prep
15
+%setup -q
16
+%build
17
+make %{?_smp_mflags}
18
+%install
19
+make DESTDIR=%{buildroot} prefix=%{_prefix} install
20
+%files
21
+%defattr(-,root,root)
22
+%{_sbindir}/*
23
+%{_docdir}/%{name}/*
24
+%{_mandir}/man8/*
25
+
26
+%changelog
27
+*	Mon Nov 02 2015 Divya Thaluru <dthaluru@vmware.com> 3.0-1
28
+-	Initial build.	First version
0 29
new file mode 100644
... ...
@@ -0,0 +1,65 @@
0
+--- procmail-3.22/Makefile.rhconfig	2001-09-10 22:53:09.000000000 -0600
1
+@@ -23,7 +23,7 @@
2
+ 
3
+ # Uncomment to install compressed man pages (possibly add extra suffix
4
+ # to the definitions of MAN?DIR and/or MAN?SUFFIX by hand)
5
+-#MANCOMPRESS = compress
6
++# MANCOMPRESS = compress
7
+ 
8
+ ############################*#
9
+ # Things that can be made are:
10
+@@ -55,7 +55,7 @@
11
+ 
12
+ LOCKINGTEST=__defaults__
13
+ 
14
+-#LOCKINGTEST=/tmp .	# Uncomment and add any directories you see fit.
15
++LOCKINGTEST=/tmp .	# Uncomment and add any directories you see fit.
16
+ #			If LOCKINGTEST is defined, autoconf will NOT
17
+ #			prompt you to enter additional directories.
18
+ #			See INSTALL for more information about the
19
+@@ -65,7 +65,7 @@
20
+ # Only edit below this line if you *think* you know what you are doing #
21
+ ########################################################################
22
+ 
23
+-#LOCKINGTEST=100	# Uncomment (and change) if you think you know
24
++LOCKINGTEST=100	# Uncomment (and change) if you think you know
25
+ #			it better than the autoconf lockingtests.
26
+ #			This will cause the lockingtests to be hotwired.
27
+ #			100	to enable fcntl()
28
+--- procmail-3.22/config.h.rhconfig	2001-09-10 22:53:50.000000000 -0600
29
+@@ -46,13 +47,13 @@
30
+  */
31
+ #define PRESTENV	{"IFS","ENV","PWD",0}
32
+ 
33
+-/*#define GROUP_PER_USER			/* uncomment this if each
34
++#define GROUP_PER_USER			/* uncomment this if each
35
+ 						   user has his or her own
36
+ 	group and procmail can therefore trust a $HOME/.procmailrc that
37
+ 	is group writable or contained in a group writable home directory
38
+ 	if the group involved is the user's default group. */
39
+ 
40
+-/*#define LMTP					/* uncomment this if you
41
++#define LMTP					/* uncomment this if you
42
+ 						   want to use procmail
43
+ 	as an LMTP (rfc2033) server, presumably for invocation by an MTA.
44
+ 	The file examples/local_procmail_lmtp.m4 contains info on how to
45
+@@ -79,7 +80,7 @@
46
+ 
47
+ /*#define NO_fcntl_LOCK		/* uncomment any of these three if you	     */
48
+ /*#define NO_lockf_LOCK		/* definitely do not want procmail to make   */
49
+-/*#define NO_flock_LOCK		/* use of those kernel-locking methods	     */
50
++#define NO_flock_LOCK		/* use of those kernel-locking methods	     */
51
+ 				/* If you set LOCKINGTEST to a binary number
52
+ 	than there's no need to set these.  These #defines are only useful
53
+ 	if you want to disable particular locking styles but are unsure which
54
+@@ -91,7 +92,7 @@
55
+ 	mail present.  procmail automatically suppresses this when it isn't
56
+ 	needed or under heavy load. */
57
+ 
58
+-/*#define DEFsendmail	"/usr/sbin/sendmail"	/* uncomment and/or change if
59
++#define DEFsendmail	"/usr/sbin/sendmail"	/* uncomment and/or change if
60
+ 						   the autoconfigured default
61
+ 	SENDMAIL is not suitable.  This program should quack like a sendmail:
62
+ 	it should accept the -oi flag (to tell it to _not_ treat a line
0 63
new file mode 100644
... ...
@@ -0,0 +1,35 @@
0
+Summary:	Autonomous Mail Processor
1
+Name:		procmail
2
+Version:	3.22
3
+Release:	1%{?dist}
4
+License:	GPLv2+
5
+URL:		http://www.procmail.org
6
+Group:		Applications/Internet
7
+Source0:	http://www.ring.gr.jp/archives/net/mail/procmail/%{name}-%{version}.tar.gz
8
+%define sha1 procmail=cd4e44c15559816453fd60349e5a32289f6f2965
9
+Patch0:		procmail-3.22-config.patch
10
+Vendor:		VMware, Inc.
11
+Distribution:	Photon
12
+%description
13
+Procmail is a program for filtering, sorting and storing email. It can be used both on mail clients and mail servers. It can be used to filter out spam, checking for viruses, to send automatic replies, etc.
14
+%prep
15
+%setup -q
16
+%patch0 -p1
17
+%build
18
+sed -i 's/getline/get_line/' src/*.[ch]
19
+
20
+%install
21
+rm -rf %{buildroot}
22
+mkdir -p %{buildroot}%{_bindir}
23
+mkdir -p %{buildroot}%{_mandir}/man{1,5}
24
+make BASENAME=%{buildroot}%{_prefix} MANDIR=${RPM_BUILD_ROOT}%{_mandir}  install
25
+make BASENAME=%{buildroot}%{_prefix} install-suid
26
+
27
+%files
28
+%defattr(-,root,root)
29
+%{_bindir}/*
30
+%{_mandir}/man1/*
31
+%{_mandir}/man5/*
32
+%changelog
33
+*	Mon Nov 02 2015 Divya Thaluru <dthaluru@vmware.com> 3.22-1
34
+-	Initial build.	First version
... ...
@@ -8,5 +8,6 @@
8 8
 	        "apache-ant","ant-contrib","apache-maven","apache-tomcat","jna","gnome-common","libgudev",
9 9
 		"dhcp-client","dhcp-server","dhcp-libs","dhcp-devel","initscripts","net-tools",
10 10
 	        "jaxws-ri","commons-daemon","runit", "python-pyasn1", "WALinuxAgent", "linux-esx",
11
-	        "python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig", "libnss-ato"]
11
+	        "python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig", "libnss-ato",
12
+		"procmail","dmidecode"]
12 13
 }