summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-08-15 08:41:55 +0000
committerJay Freeman <saurik@saurik.com>2009-08-15 08:41:55 +0000
commit9c06c9aa4f6174d9a17a023576d3039d27f84fcf (patch)
tree0e98e20e7e1dba31b9d2350a843202f6317a1b45
parent2bcf623a567c3f4507a6d781976a20b6d1531679 (diff)
I forgot to add profile.d.
git-svn-id: http://svn.telesphoreo.org/trunk@663 514c082c-b64e-11dc-b46d-3d985efe055d
l---------data/profile.d/_metadata/bash.dep1
-rw-r--r--data/profile.d/_metadata/description1
l---------data/profile.d/_metadata/license1
l---------data/profile.d/_metadata/maintainer1
-rw-r--r--data/profile.d/_metadata/name1
-rw-r--r--data/profile.d/_metadata/priority1
-rw-r--r--data/profile.d/_metadata/role1
-rw-r--r--data/profile.d/_metadata/section1
-rw-r--r--data/profile.d/_metadata/tags1
-rw-r--r--data/profile.d/_metadata/version1
-rw-r--r--data/profile.d/make.sh3
-rw-r--r--data/profile.d/profile9
-rw-r--r--data/profile.d/terminal.sh3
13 files changed, 25 insertions, 0 deletions
diff --git a/data/profile.d/_metadata/bash.dep b/data/profile.d/_metadata/bash.dep
new file mode 120000
index 000000000..d0c818fb6
--- /dev/null
+++ b/data/profile.d/_metadata/bash.dep
@@ -0,0 +1 @@
+../../bash \ No newline at end of file
diff --git a/data/profile.d/_metadata/description b/data/profile.d/_metadata/description
new file mode 100644
index 000000000..fa0b343aa
--- /dev/null
+++ b/data/profile.d/_metadata/description
@@ -0,0 +1 @@
+makes packaging for /etc/profile reasonable
diff --git a/data/profile.d/_metadata/license b/data/profile.d/_metadata/license
new file mode 120000
index 000000000..b9c4e3684
--- /dev/null
+++ b/data/profile.d/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/menes \ No newline at end of file
diff --git a/data/profile.d/_metadata/maintainer b/data/profile.d/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/profile.d/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/profile.d/_metadata/name b/data/profile.d/_metadata/name
new file mode 100644
index 000000000..ddce954d8
--- /dev/null
+++ b/data/profile.d/_metadata/name
@@ -0,0 +1 @@
+Profile Directory
diff --git a/data/profile.d/_metadata/priority b/data/profile.d/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/profile.d/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/profile.d/_metadata/role b/data/profile.d/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/profile.d/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/profile.d/_metadata/section b/data/profile.d/_metadata/section
new file mode 100644
index 000000000..eb7a34ddd
--- /dev/null
+++ b/data/profile.d/_metadata/section
@@ -0,0 +1 @@
+Administration
diff --git a/data/profile.d/_metadata/tags b/data/profile.d/_metadata/tags
new file mode 100644
index 000000000..ad5d50831
--- /dev/null
+++ b/data/profile.d/_metadata/tags
@@ -0,0 +1 @@
+purpose::console
diff --git a/data/profile.d/_metadata/version b/data/profile.d/_metadata/version
new file mode 100644
index 000000000..573541ac9
--- /dev/null
+++ b/data/profile.d/_metadata/version
@@ -0,0 +1 @@
+0
diff --git a/data/profile.d/make.sh b/data/profile.d/make.sh
new file mode 100644
index 000000000..552e98820
--- /dev/null
+++ b/data/profile.d/make.sh
@@ -0,0 +1,3 @@
+pkg: mkdir -p /etc/profile.d
+pkg: cp -a %/terminal.sh /etc/profile.d
+pkg: cp -a %/profile /etc
diff --git a/data/profile.d/profile b/data/profile.d/profile
new file mode 100644
index 000000000..af1a3d2ac
--- /dev/null
+++ b/data/profile.d/profile
@@ -0,0 +1,9 @@
+export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games'
+export PS1='\h:\w \u\$ '
+umask 022
+
+for i in /etc/profile.d/*.sh ; do
+ if [ -r "$i" ]; then
+ . $i
+ fi
+done
diff --git a/data/profile.d/terminal.sh b/data/profile.d/terminal.sh
new file mode 100644
index 000000000..df0ca9546
--- /dev/null
+++ b/data/profile.d/terminal.sh
@@ -0,0 +1,3 @@
+if [[ $TERM = network || -z $TERM ]]; then
+ export TERM=linux
+fi