Creapkg - Create pkgs easyly

Hi!
I made a script that it lets you install software in your PC cleanly, creating a pkg.
You must configure, compile and finally install the program in the directory "pkg" and run "creapkg". An example:
./configure --prefix=/usr
make
make prefix=`pwd`/pkg install
creapkg
After you do this, the script will ask you some questions and will create a package in ./pkg.
You can find PKGBUILD in aur.
I'll wait your opinions.
Thanks and sorry for my poor english.
<B>UPDATE</B>
Version 0.3
=======
I added some options and fix some bugs. Now you can compile/install an autoconf program easyly.
[root@localhost thinkeramik-3.2.1]# creapkg -h
creapkg 0.3
usage: /usr/bin/creapkg pkgname pkgversion [OPTIONS]
OPTIONS:
-i, --install Install package after successful build
-r <release> Package release
-d <description> Package description
-u <url> Program URL
-l <license> Program license
-p <packager> Package packager
-c, --cleanbuild Clean building directory
-n, --nocolor Disable colorized output messages
-h, --help Show this help
BUILDING OPTIONS:
-a, --autoconf Build autoconf program
-w <prefix> Set program prefix
An example:
[root@localhost thinkeramik-3.2.1]# creapkg kde-theme-thinkeramik 3.2.1 -iaw /opt/kde
==> Building program with autoconf...
==> Running configure script...
==> Configure script executed successful!
==> Starting compilation...
==> Compiling...
==> Compilation successful!
==> Locating files in pkg directory...
==> Location successful!
==> Building a package for kde-theme-thinkeramik 3.2.1...
==> Generating .FILELIST...
==> Generating .PKGINFO...
==> Compressing package...
.PKGINFO
.FILELIST
opt/
opt/kde/
opt/kde/lib/
opt/kde/lib/kde3/
opt/kde/lib/kde3/kwin_thinkeramik_config.la
opt/kde/lib/kde3/kwin_thinkeramik_config.so
opt/kde/lib/kde3/kwin3_thinkeramik.la
opt/kde/lib/kde3/kwin3_thinkeramik.so
opt/kde/lib/kde3/kstyle_thinkeramik_config.la
opt/kde/lib/kde3/kstyle_thinkeramik_config.so
opt/kde/lib/kde3/plugins/
opt/kde/lib/kde3/plugins/styles/
opt/kde/lib/kde3/plugins/styles/thinkeramik.la
opt/kde/lib/kde3/plugins/styles/thinkeramik.so
opt/kde/share/
opt/kde/share/apps/
opt/kde/share/apps/kwin/
opt/kde/share/apps/kwin/thinkeramik.desktop
opt/kde/share/apps/kstyle/
opt/kde/share/apps/kstyle/themes/
opt/kde/share/apps/kstyle/themes/thinkeramik.themerc
opt/kde/share/apps/kdisplay/
opt/kde/share/apps/kdisplay/color-schemes/
opt/kde/share/apps/kdisplay/color-schemes/thinkeramik.kcsrc
opt/kde/share/apps/kdisplay/color-schemes/thinkeramik-II.kcsrc
==> The package kde-theme-thinkeramik 3.2.1-1 has been built successful (Sun Aug 14 16:32:59 2005)
==> You can find the package in /home/moret/src/thinkeramik-3.2.1/pkg/kde-theme-thinkeramik-3.2.1-1.pkg.tar.gz
==> Installing kde-theme-thinkeramik-3.2.1-1...
loading package data... done.
checking for file conflicts... done.
installing kde-theme-thinkeramik... done.
Opinions please!

I did update (and rename) my script. it's now allmost feature complete, but I need a nice error function (printing in red) and the normal make install command (I'm too lazy to look it up ).
You now can build a package of python programms or just package a specific directory (usefull for scripts).
Of course I'am not responsible for any damage done by this script, bla, bla, bla.
examples:
the installation of autopkg as a package
[11:26] police:pypkg ls
autopkg
[11:26] police:pypkg mkdir -p pkg/usr/bin
[11:26] police:pypkg cp autopkg pkg/usr/bin/
[11:26] police:pypkg autopkg autopkg 0.2 "a package creating tool for archlinux" --pkg-dir pkg/ --install
==> ::running the setup
==> warning: no build command issued
==> ::generating the filelist
==> ::trying to retrive information about the package
==> ::generating the package info
==> ::compressing the package
==> installing package
loading package data... done.
checking for file conflicts... done.
upgrading autopkg... done.
==> ::finished
[11:27] police:pypkg
creating a package for pylinda
[11:30] police:linda ls
linda-0.5.1.tar.gz
[11:30] police:linda tar xzf linda-0.5.1.tar.gz
[11:30] police:linda cd linda-0.5.1
[11:30] police:linda-0.5.1 autopkg pylinda 0.5.1 "an implementation of a linda system in python" --python
==> ::creating a temporary directory
==> ::running the setup
==> ::generating the filelist
==> ::trying to retrive information about the package
==> ::generating the package info
==> ::compressing the package
==> ::removing package directory
==> ::finished
[11:31] police:linda-0.5.1
the script (autopkg)
#!/bin/bash
# 12.08.05 8:00 am created file
[ -f /etc/makepkg.conf ] && source /etc/makepkg.conf
# infos about this script
NAME="pypkg"
VERSION="0.2"
# global vars - w/ defaults
pkg="" # the package directory
pkgname="" # the name of the package
pkgver="" # the version of the package
pkgdesc="" # the description of the package
pkgrel="1" # the package release
builddate=`LC_ALL= ; LANG= ; date -u "+%a %b %e %H:%M:%S %Y"`
startdir=$(pwd) # the directory the build has started
allready_installed="n" # wether the package was allready installed
BUILD=""
INSTALL="n"
NO_TMP="n"
# some functions
function msg() {
#if [ "$USE_COLOR" = "Y" -o "$USE_COLOR" = "y" ]; then
# echo -e "33[1;32m==>33[1;0m 33[1;1m$*33[1;0m" >&2
#else
echo "==> $@" >&2
#fi
function gen_filelist(){
# 12.8.05 8:07 am created function
# args: $1 target file
msg "::generating the filelist"
cd $pkg
tar cvf /dev/null * | sort | >.FILELIST
function create_tmp_dir(){
# 12.8.05 8:07 am created function
if [ $NO_TMP == "y" ]; then return; fi
msg "::creating a temporary directory"
pkg=$(mktemp -d -p "$startdir")
function run_setup(){
# 12.8.05 8:07 am created function
msg "::running the setup"
cd $startdir
if [ "$BUILD" == "python" ]
then
python setup.py install --prefix="$pkg/usr"
) > /dev/null || (echo " ::error build failed"; exit -1)
elif [ "$BUILD" == "make" ]
then
msg "::currently unsported";
remove_tmp_dir
exit
#make install
#) > /dev/null || (echo "::error build failed"; exit -1)
elif [ "$BUILD" == "use" ]
then
($USE) > /dev/null || (echo "::error build failed"; exit -1)
else
msg "warning: no build command issued"
fi
function gen_pkginfo(){
# 12.08.05 8:07 am created function
msg "::generating the package info"
cd $pkg
touch .PKGINFO
size=$(du -cb $pkg | tail -n 1 | awk '{print $1}')
echo "size = $size" >> .PKGINFO
echo "# Generated by pypkg $version" >> .PKGINFO
echo "# $builddate" >> .PKGINFO
echo "pkgname = $pkgname" >> .PKGINFO
echo "pkgver = ${pkgver}-${pkgrel}" >> .PKGINFO
echo "pkgdesc = $pkgdesc" >> .PKGINFO
echo "builddate = $builddate" >> .PKGINFO
if [ "$CARCH" != "" ]; then
echo "arch = $CARCH" >> .PKGINFO
fi
function compress_pkg(){
# 12.08.05 8:07 am created function
msg "::compressing the package"
cd $pkg
pkg_file="$startdir/$pkgname-$pkgver-$pkgrel.pkg.tar.gz"
tar czf $pkg_file .PKGINFO .FILELIST *
function remove_tmp_dir(){
# 12.08.05 8:07 am created function
if [ $NO_TMP == "y" ]; then return; fi
msg "::removing package directory"
cd $startdir
rm -r $pkg
function __get_info(){
# 12.08.05 8:30 am created function
pacman -Qi $pkgname | grep $1 | sed 's/.*:s*/(w.*)/1/'
function get_pkginfo(){
# 12.08.05 8:30 am created function
# if the package is allready installed, retrive it's information
msg "::trying to retrive information about the package"
(pacman -Qi $pkgname 2>/dev/null > /dev/null && installed=y) || installed=n
if [ -z "$pkgdesc" ]
then
if [ "$installed" == "y" ]
then
pkgdesc=$(__get_info 'Description')
else
pkgdesc="Autogenerated by autopkg"
fi
fi
if [ -z "$pkgrel" ]
then
if [ "$installed" == "y" ]
then
pkgrel=$(__get_info 'Version' | sed 's/-(d*)/1/')
else
pkgrel=1
fi
fi
function install_pkg(){
# 12.08.05 09:20 created function
if [ $INSTALL != 'y' ] || [ -z "$pkg_file" ]; then return; fi
msg "installing package"
sudo pacman -U $pkg_file
function mk_abs_path(){
if [ ${1:0:1} == "/" ]
then
echo $1
else
echo $(pwd)/$1
fi
# parse the options
function usage(){
# 12.08.05 08:50 created function
echo "usage: $0 pkgname pkgver [pkgdesc] [pkgrel] OPTIONS"
echo "OPTIONS: "
echo "--python installs the programm via distutils"
echo "--make installs the programm via make"
echo "--use CMD installs the programm via CMD"
echo " (has to be the last option)"
echo "--pkg-dir DIR uses the directory pkg for package installation"
echo " (else a temporary director is used)"
echo "--install directly installs the programm via pacman (needs sudo)"
echo "--help prints this message"
function set_non_build(){
# 12.08.05 08:40 created function
# usage set_non_build option arg
if [ -z "$1" ] || [ $# -lt 2 ]
then
return -1
fi
if [ "${1:0:2}" != "--" ]
then
eval "$2="$1""
return 0
fi
return -1
#if [ $# -lt 2 ] || [ -z "$(echo $@ | grep -- --help)" ]
#then
# usage; exit
#fi
pkgname=$1
pkgver=$2
shift 2
set_non_build "$1" "pkgdesc" && shift
set_non_build "$1" "pkgrel" && shift
while [ $# -ne 0 ]
do
case $1 in
--python) BUILD="python";;
--make) BUILD="make";;
--use) BUILD="use";shift;USE="$@";exit;;
--pkg-dir) NO_TMP="y";shift;pkg=$(mk_abs_path "$1");;
--install) INSTALL="y";;
*) usage; exit;;
esac
shift
done
create_tmp_dir
run_setup || exit
gen_filelist
get_pkginfo
gen_pkginfo
compress_pkg
remove_tmp_dir
install_pkg
msg "::finished"

Similar Messages

  • Can AAMEE 3.1 create pkg for CS6 Design Standard?  or just CS6 Mast Collection?

    can AAMEE 3.1 create pkg for CS6 Design Standard?  or just CS6 Mast Collection?

    ok, thanks,  just wanted to make sure. I have a volume serial no.   for CS6 Dest Stan.
    AAMEE 3.1 is for CS6 Suite,  so should be good for all CS6
    I created a pkg for CS6 Mast Coll using AAMEE 3.1 a few months ago and works fine  (.msi)

  • AAMEE - adobe acct used to create pkg

    Ok I found this thread, which someone mentions the account used during creation of an AAMEE package doesn't seen to matter... I just want to confirm.
    http://forums.adobe.com/message/4604473#4604473
    We have a large IT department, I do not have access to licensing info or management, besides serials they give me.  Another team has those LWS accounts etc to manage/purchase licenses.  I am just a simple packager:)
    I used my adobe account during the setup of an AAMMEE package, which does not have any relation to the enterprise license that was purchased and being packaged.
    What is the login process during package creation do?  I have read that some don't have any problems using any old account to setup AAMEE package, I just want to make sure there isn't some catch we find out down the road...
    Thanks

    You can deploy AAMEE packages with your adobe id. Only that volume serial number should be correct.
    cheers,
    Rahul | Adobe Systems

  • What do you use to create distributable packages with ARD?

    What do you use to create distribution packages for ARD?
    I.E. a package for installing the new Oracle Java 7.21 on all our machines.
    Or, a package for installing Micosoft Office 14.3.2 udapters?
    Specifically for 10.7 and 10.8 users.
    Install Ease?
    Jamf Composer?
    Packages?
    xCode PackageMaker?
    Which one should I put my time into using?
    Thanks.

    Nicolas, Have you been able to get the Adobe Update to work? I get stopped at the first step, putting in the command-line to install the AUS2.0. I think we have a support Contract, i should probably just ask Adobe for assistance.
    Does noboby create their own distributable packages? Maybe i'm looking at this wrong.
    I see that even Microsoft puts their updates into a .pkg file that is pushable through ARD. Maybe most everyone else does?
    I was able to get an Adobe Flash Player Distributable installer, from Adobe, you have to fill out a form asking for permission for the distributable installer, and they send you a link to the files.. ugh. but fine. I have the .pkg installer for Flash, and that works pushing out over ARD.
    http://www.adobe.com/products/players/flash-player-distribution.html
    I guess my life would be great, if i can just get a Updater source for CS5.5 and CS6.
    I did create the Adobe Package distribution for actually installing the CS6 over ARD. That works.
    I have a licensing glitch on deploying new machine off a build that has CS6 on it. I'm able to get around the licensing glitch by using the Adobe Serialization tool, that's fine.
    I guess i'm just looking for a CS6 Updates tool. I'm fine creating a CS6 updater package using InstallEase or something. I'm wondering what the best one is.
    IF most everything already comes as a .pkg file nowadays, and it's just Adobe that's difficult. I guess there's not really a need to create .pkg files for anyone? So nobody really uses them?

  • Trying to create a wireless connection with an Imac and ibook

    I was connected to the internet using a DSL cable modem, and ethernet. My main computer is a iMAC G5 (bought last year) using Snow Leopard as the operating system.
    I recently acquired an old iBook (2004) running on Panther.
    It was connected to the internet using a dual type ethernet/wireless modem from Sympatico.
    It used the built-in airport to link to the internet.
    I bought this week a new Airport Express 802.11n Wi-Fi device.
    I sucessfully hooked up my iMAC to a new wireless network I created, but was unable to connect
    the old ibook. Did anybody else have this problem?
    Is there a solution?

    loqs wrote:You built the package (using --asroot with makepkg is not a good idea ) but you did missed Install_the_package
    Also see Kernel_Modules so the module is loaded automatically at boot.
    Seriously? I spent that many hours searching for my several error messages, trying to solve them, not wanting to ask for help without putting too much of my own effort into it and when I finally decide to ask for help it is when I didn't get a super essential thing like makepkg doesn't install and is merely to create .pkg.tar.xz?? Oh gosh... (;
    Well, thank you! I guess I'll take my next change to use Google to find out how to use makepkg without --asroot. Yes, wl is loaded now and it's set as the kernel driver in use!
    Unfortunately, after ip link set wlp2s0 up and typing dmesg | grep wl I get:
    wl: module license 'Mixed/Proprietary' taints kernel.
    wlan0: Broadcom BCM4727 802.11 Hybrid Wireless Controller 6.30.223.248 (r487574)
    systemd-udevd[148]: renamed network interface wlan0 to wlp2s0
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    And therefor: No firmware loaded. Google doesn't give much about this message but hints to PCI or PCI-Express not working as it should. I found this and tried starting with pciehp.pciehp_force=1 and ordered a modprobe acpiphp but nothing changed.

  • Makepkg not creating ANY packages

    I am able to use makepkg from either a manually downloaded PKGBUILD or via packer, and it works fine, except for creating the actual package. Instead what happens is that makepkg usually creates "pkg" and a "src" directories. I am then able to issue makepkg -R which creates the package just fine.
    Does anyone have any ideas as to what might be the issue?
    This has not always happened to me, I used to be able to build packages just fine. Just recently it happens with every PKGBUILD. I have also deleted /etc/makepkg.conf, done a pacman -Scc and re-installed pacman which created the /etc/makepkg.conf again, but the issue persists.
    Please let me know if I need to attach more information.
    Thanks.

    I tried to install pidgin-libnotify-notify-osd.
    When I ran makepkg in the directory with the PKGBUILD I got:
    make[2]: Leaving directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14/src'
    make[1]: Leaving directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14/src'
    make[1]: Entering directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14'
    make[2]: Entering directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14'
    make[1]: Leaving directory `/home/n00657918/tmp/src/pidgin-libnotify-0.14'
    ==> Tidying install...
    -> Purging other files...
    When I ran packer -S pidgin-libnotify-notify-osd I got:
    make[2]: Leaving directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14/src'
    make[1]: Leaving directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14/src'
    make[1]: Entering directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14'
    make[2]: Entering directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14'
    make[1]: Leaving directory `/tmp/packerbuild-1000/pidgin-libnotify-notify-osd/pidgin-libnotify-notify-osd/src/pidgin-libnotify-0.14'
    The build failed.
    When I ran ls in both my working directory (where the PKGBUILD was located) and in the packer /tmp directory, I received the following list of files:
    pidgin-libnotify-0.14.tar.gz
    pidgin-notify-osd.patch
    pkg
    PKGBUILD
    src
    When I ran makepkg -R in either of the directories mentioned above I got:
    ==> Making package: pidgin-libnotify-notify-osd 0.14-3 (Mon Jul 26 12:22:38 EDT 2010)
    ==> Entering fakeroot environment...
    ==> WARNING: Repackaging without the use of a package() function is deprecated.
    File permissions may not be preserved.
    ==> WARNING: Package contains reference to $srcdir
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: pidgin-libnotify-notify-osd 0.14-3 (Mon Jul 26 12:22:38 EDT 2010)
    Which then creates the appropriate package which can then be installed using pacman -U.

  • Solaris 11 IPS:  How do you post multiple versions of the same package?

    How do you post multiple versions of the same software package on a single IPS instance(port)? Oracle was able to do it here with versions 151 and 175 of S11:
    http://pkg.oracle.com/solaris/release/
    Unfortunately, based on my searches, no where in the documentation (http://www.oracle.com/technetwork/server-storage/solaris11/technologies/ips-323421.html) does it explain to the development community how this is done. The best I can do is create pkg repo instances on different ports to host each different software version.
    We are trying to deploy an IPS repository for our drivers and utilities that our customers can link to and pull updates from. We have been able to post a software package to the repository using the command:
    pkgsend publish -s http://localhost:1234 -d ./ Appv1.p5m
    This posts the package on the IPS repository instance at port 1234 on the server. However, we would like to post multiple versions of the package on the server at the same URL. Why the same URL? So that our customers and end-users need only point to a single URL to pull down our software rather than having to add a new URL to the publisher list each time we have an update. We want at least 5 of the previous software versions to be available on the server. Posting each version of the application or driver on a different IPS instance on a different port will require customers to add multiple URLs to their publisher list and they also will not be able to initiate remote scans for updates.
    Has anybody been able to do this? Is any documentation forthcoming?
    Edited by: user13489824 on Jun 25, 2012 10:17 AM

    dhduvall: Thanks for your response. Yes, one would think that as long as the version numbers are different, you should be able to accumulate multiple versions of a package in a repository. It looks like Oracle has done it in their S11 repository unfortunately, as far as I know, they have not shared the steps on how to do this. I would like to publish two versions of the same package. I.E. two different manifests with two different fmri.pkg version strings and two different binaries.
    If I publish one package after another like this:
    pkgsend publish -s http://localhost:1234 Appv1.p5m
    pkgsend publish -s http://localhost:1234 Appv2.p5m
    Then only the second package shows up in the repository, as if it over-wrote the first one.
    Running pkgsend with two manifest, like this:
    pkgsend publish -s http://localhost:1234 Appv1.p5m Appv2.p5m
    Will cause pkgsend to combine the packages and manifests as if they were a single package... not what I am trying to do.
    Both approaches are complete without errors but neither achieves what I am trying to do.
    alan.pae: Thank you. Unfortunately, the link didn't really help. I've read Oracle's white papers and IPS developer guide so I'm familiar with the topics covered.
    Lex: Yes, I know. I specified the versions in the pkg.fmri value string.

  • Trying to setup a RADIUS connection with challenge response

    I need to test a RADIUS authentication and I've read note id 272804.1 and http://download.oracle.com/docs/cd/B19306_01/network.102/b14268/asoradus.htm.
    I'm trying to connect from DEVDB machine using sqlplus as client and connect to the local database server 10gr2 which then should act as RADIUS client to finally try to reach another machine with hostname DEVRADIUS.
    I'm using freeRadius which delegate authentication and authorization phases to a OTP service. Other middleware services are able to use this kind of RADIUS authentication with no problem: so this radius configuration is perfectly working for other clients.
    I've done some tests, but I'm not able to connect to DEVRADIUS from the Oracle database.
    Executing ./adapters and ./adapters ./oracle showed me the RADIUS authentication is available.
    When I try to connect using my external user I'm receiving the following error:
    ORA-12638: Credential retrieval failed
    A firewall exists between the database server and clients, but the port 1812 used to connect my database DEVDB to radius server DEVRADIUS has been open (UDP)
    My sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (RADIUS)
    SQLNET.RADIUS_PORT= (1812)
    SQLNET.RADIUS_AUTHENTICATION_PORT = 1812
    SQLNET.RADIUS_SECRET = (/u01/app/oracle/product/10.2.0/db_1/network/security/radius.key)
    SQLNET.RADIUS_AUTHENTICATION_TIMEOUT = 10
    SQLNET.RADIUS_AUTHENTICATION = DEVRADIUS
    SQLNET.RADIUS_CHALLENGE_RESPONSE = (ON)
    SQLNET.RADIUS_CHALLENGE_KEYWORD = (CHALLENGE)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)Into /u01/app/oracle/product/10.2.0/db_1/network/security/radius.key there's only the shared secret RADIUS key.
    Previously I've created this user:
    SQL> create user rad_user identified externally;
    SQL> grant connect, resource to rad_user;
    SQL> show parameter OS_A
    NAME TYPE VALUE
    os_authent_prefix string
    remote_os_authent boolean FALSE
    SQL> show parameter OS_RO
    NAME TYPE VALUE
    os_roles boolean FALSE
    remote_os_roles boolean FALSEThis is the error I receive:
    sqlplus /nolog;
    SQL> connect /@DEVDB;
    ERROR:
    ORA-12638: Credential retrieval failedOn RADIUS server started in debug mode, I don't see any attempt to connect.
    Any suggestions?

    loqs wrote:You built the package (using --asroot with makepkg is not a good idea ) but you did missed Install_the_package
    Also see Kernel_Modules so the module is loaded automatically at boot.
    Seriously? I spent that many hours searching for my several error messages, trying to solve them, not wanting to ask for help without putting too much of my own effort into it and when I finally decide to ask for help it is when I didn't get a super essential thing like makepkg doesn't install and is merely to create .pkg.tar.xz?? Oh gosh... (;
    Well, thank you! I guess I'll take my next change to use Google to find out how to use makepkg without --asroot. Yes, wl is loaded now and it's set as the kernel driver in use!
    Unfortunately, after ip link set wlp2s0 up and typing dmesg | grep wl I get:
    wl: module license 'Mixed/Proprietary' taints kernel.
    wlan0: Broadcom BCM4727 802.11 Hybrid Wireless Controller 6.30.223.248 (r487574)
    systemd-udevd[148]: renamed network interface wlan0 to wlp2s0
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    And therefor: No firmware loaded. Google doesn't give much about this message but hints to PCI or PCI-Express not working as it should. I found this and tried starting with pciehp.pciehp_force=1 and ordered a modprobe acpiphp but nothing changed.

  • PackageMaker localization problem

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

  • Adding ability to use ref cursors in future versions of Apex

    Currently it has been documented that Apex does not play well with ref cursors and how to get around that. Is this a feature that the Apex team is looking into for future versions? Currently we are using Oracle 11g and 1 g with Apex 4.0.2. Your reply is most appreciated.
    JudJasRis

    Hi Tony Miller,
    Thank you for the prompt reply. I see your name in many of the replies in this Apex forum.
    We currently have several package functions that use out ref cursors. We are looking to use the result of that ref cursor for our reports. We have found a way to get around the ref cursor by creating a table collection of the row type and return it in a specific function declaration in a pipelined function. I am fairly new to creating pkgs, functions and specifically pipeline functions as well as learning the many nooks and crannies of Apex. It would be nice to be able to call a predefined ref cursor within Apex. I was just curious if that was a feature that could be developed. Please excuse my lack of knowledge, I am learning though by asking these type of questions.
    Again thank you.
    JudJasRis

  • Second snapshot of KDE 4 (3.80.2)

    I've created packages of the second snapshot of KDE 4 [1].
    Don't expect too much! These snapshots are more or less for developers. There are not all features of KDE 4 implemented yet.
    You can find the PKGBULDs in AUR.
    I've also created pkgs of this release. Add the following section to /etc/pacman.conf to get updates. Install it with pacman -Sy kde4.
    [kde4]
    Server = http://archlinux.puzzle.ch/kde4
    If you like theses PKGBULDs, let it me know and I'll create PKGBULDs of all kde-modules.
    [1]: http://kde.org/info/3.80.2.php

    Thanks for that
    BTW can you start dbus without an error? Also do you know how to remove kde3 menu(I tried on brand new user)? Thx

  • [solved]packages and architectures

    How do you make a package from a PKGBUILD that specifies "any" in the architecture field so that the same pkg tarball can be installed on any system. I.e. how do you get makepkg to create "any.pkg.tar.gz" instead of "local_architecture.pkg.tar.gz"?
    I didn't find anything in the makepkg man page or the wiki, but I'm sure that I've seen some doc pkgs that had this in the pkg file name. If I've imagined this, how do you create an i686 pkg from an x86_64 machine and vice versa when the pkg itself is architecture-independent?
    EDIT
    Rephrased the question to make it clearer.
    EDIT 2
    The behavior is exactly as one would logically expect...
    "arch=('any')" generates an "-any.pkg.tar.gz" pkg
    "arch=('i686' 'x86_64')" generates an "-<architecture>.pkg.tar.gz" pkg
    I was so sure that the PKGBUILD specified 'any' that I didn't bother to double-check, hence my confused and stupid question.
    Last edited by Xyne (2008-10-24 22:57:39)

    Xyne wrote:How do you make a package that supports "any" architecture, i.e. get a makepkg to create "pkg.any.tar.gz" instead of "pkg.local_architecture.tar.gz"?
    You put
    arch=('any')
    in the PKGBUILD.
    Xyne wrote:If I've imagined this, how do you create an i686 pkg from an x86_64 machine and vice versa when the pkg itself is architecture-independent?
    The 'package' is just a tarred bunch of files. If they are arch independent, then it's just about the filename, and about the file with the name .PKGINFO in the root of the tarball - you can edit that and change the "arch= ..." line. So although it's possible, why would you want to do that?

  • Netboot - AAMEE

    From https://discussions.apple.com/message/12564961 , still having problems creating a image with adobe products installed in it, in that last post Kostas B told me about Adobe's deployment solution (AAMEE), that does create a pkg from the installer, but, every test i've ran so far. Using system image utility to create the image and when i add the created PKG to the Packages and Post-Install Scripts the the Customize Package Selection part does list Adobe Setup, but it's grayed out and Size is 0 bytes, after deploying from it, there isn't any adobe software installed.
    The closest i gotten with this is creating another package with Package Maker and add the AAMEE package to Package Maker, SIU does report a size and it's not grayed out with that one, the software is installed, but, when i try to run them i just get a error telling me to re-install.
    Has anyone been able to do this? Any other things i should look at, maybe with Composer? Dont have composer and dont really want to pay for it to find out that i'll end up with the same result -.-

    Kudos once again to Mr. Zalenka, his knowledge and helpfulness.
    You've not stated why you need the image volume to be RO. However, I've never seen a promise nor hint - let alone guarantee - that one can use a RO volume for this purpose.
    Does it function correctly from start to finish using your workaround ?
    Some NetBoot settings are indeed stored in NetInfo, for example the "DHCP" NetBoot mac-address filtering settings are stored in NetInfo, if you have a look I'd imagine you'll find the rest you're looking for there.

  • Procedure does not works

    hi
    i have a package like this
    CREATE OR REPLACE PACKAGE BODY ORDER AS
    PROCEDURE Report (
    report_attr_ IN VARCHAR2,
    parameter_attr_ IN VARCHAR2 )
    IS
    supp_addrs_ varchar2(2000);
    comp_addrs_ varchar2(2000);
    stmt1 varchar2(2000);
    order_no_ varchar2(30);
    CURSOR ITEM_DTL_(order_no_ in varchar2) IS
    SELECT * FROM PURCHASE_ORDER_LINE_PART WHERE
    ORDER_NO=order_no_;
    CURSOR COMP_ADDR_(order_no_ in varchar2) IS
    SELECT ADDRESS_LOV from
    COMPANY_ADDRESS c,purchase_order p
    where p.order_no=order_no_ and
    p.company=c.company;
    BEGIN
    FOR I IN ITEM_DTL_(order_no_ ) LOOP
    OPEN COMP_ADDR_(order_no_);
    FETCH COMP_ADDR_ INTO comp_addrs_;
    stmt1:='select i.name||s.address1||s.address2||s.city||s.state'||
    'from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p'||
    'where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and
    s.supplier_id=i.supplier_id';
    execute immediate stmt1 into supp_addrs_ using order_no_;
    INSERT INTO tab
    s1,
    s2,
    s3,
    s5,
    s6,
    s7,
    s9,
    s10,
    s11,
    s12,
    s13,
    s14,
    s15
    VALUES
    I.VENDOR_NO,
    I.PROMISED_DELIVERY_DATE,
    I.DELIVERY_TERMS_DESC,
    I.SHIP_VIA_DESC,
    comp_addrs_,
    I.DESCRIPTION,
    I.PART_NO,
    I.LINE_NO,
    I.RELEASE_NO,
    I.BUY_QTY_DUE,
    I.BUY_UNIT_PRICE,
    I.ORDER_NO,
    supp_addrs_
    ROW_NO_ := ROW_NO_ + 1 ;
    END LOOP;
    END Report;
    END ORDER;
    problem is will this work.i mean will the table tab will be populated.

    Thank you all for it
    i now rewrite it---
    PROMPT Creating &PKG implementation
    CREATE OR REPLACE PACKAGE BODY &PKG AS
    PROCEDURE &METHOD (
    report_attr_ IN VARCHAR2,
    parameter_attr_ IN VARCHAR2 )
    IS
    result_key_ NUMBER;
    row_no_ NUMBER := 1;
    PARENT_ROW_NO_ NUMBER := 0 ;
    supp_addrs_ varchar2(2000);
    comp_addrs_ varchar2(2000);
    stmt1 varchar2(2000);
    sqlstr2 varchar2(2000);
    order_no_ varchar2(30);
    /* cursor sup_det_(order_no_ in vrachar2) is
    select * from PURCHASE_ORDER
    where order_no=order_no_;*/
    CURSOR ITEM_DTL_(order_no_ in varchar2) IS
    SELECT * FROM PURCHASE_ORDER_LINE_PART WHERE
    ORDER_NO=order_no_;
    cursor get_addr(order_no_ in varchar2) is
    select i.name||s.address1||s.address2||s.city||s.state||
    from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p||
    where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and s.supplier_id=i.supplier_id;
    CURSOR COMP_ADDR_(order_no_ in varchar2) IS
    SELECT ADDRESS_LOV from
    COMPANY_ADDRESS c,purchase_order p
    where p.order_no=order_no_ and
    p.company=c.company;
    BEGIN
    result_key_ := Client_SYS.Attr_Value_To_Number(Client_SYS.Get_Item_Value('RESULT_KEY', report_attr_));
    order_no_ := Client_SYS.Get_Item_Value('ORDER_NO', parameter_attr_);
    FOR I IN ITEM_DTL_(order_no_) LOOP
    OPEN COMP_ADDR_(order_no_);
    FETCH COMP_ADDR_ INTO comp_addrs_;
    END comp_addrs_;
    OPEN get_addr(order_no_);
    FETCH get_addr INTO supp_addrs_;
    END get_addr;
    /* stmt1:='select i.name||s.address1||s.address2||s.city||s.state'||
    'from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p'||
    'where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and s.supplier_id=i.supplier_id';*/
    -- execute immediate stmt1 into supp_addrs_ using order_no_;
    INSERT INTO &TABLE
    RESULT_KEY,
    ROW_NO,
    PARENT_ROW_NO,
    &vendor_no,
    &promised_delivery_date,
    &delivery_terms_desc,
    &ship_via_desc,
    &address_lov,
    &description,
    &part_no,
    &line_no,
    &release_no,
    &buy_qty_due,
    &buy_unit_price,
    &order_no,
    &supplier_address
    VALUES
    RESULT_KEY_,
    ROW_NO_,
    PARENT_ROW_NO_,
    I.VENDOR_NO,
    I.PROMISED_DELIVERY_DATE,
    I.DELIVERY_TERMS_DESC,
    I.SHIP_VIA_DESC,
    comp_addrs_,
    I.DESCRIPTION,
    I.PART_NO,
    I.LINE_NO,
    I.RELEASE_NO,
    I.BUY_QTY_DUE,
    I.BUY_UNIT_PRICE,
    I.ORDER_NO,
    supp_addrs_
    ROW_NO_ := ROW_NO_ + 1 ;
    END LOOP;
    END &METHOD;
    END &PKG;
    SHOW ERROR
    now is it right?will i get data from get_addr_ and COMP_ADDR_ and populate my table
    in the variable supp_addrs_ and comp_addrs_
    Message was edited by:
    BP

  • Doesn't [community] mean AUR? [SOLVED]

    Just installed Arch yesterday, coming from Ubuntu 10.4.  I'm mostly liking it.
    But I'm confused about why I can't install the packages I had before.
    I thought that enabling [community] in the pacman.conf file meant I could get all those user packages.
    But pacman does not seem to see them.
    One example of many: an ftpd server.
    I search AUR and find these:
    https://aur.archlinux.org/packages/?O=0 … &SB=n&SO=a
    That's 17 results, including the one I'm looking for, proftpd
    And yet pacman only sees these:
    # pacman -Ss ftpd
    extra/bftpd 4.0-1
        Small, easy-to-configure FTP server
    community/sshguard 1.5-13
        Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables
    community/vsftpd 3.0.2-2
        Very Secure FTP daemon
    So how do I ge to the ones in AUR?
    Last edited by jtgd (2013-06-24 08:53:55)

    Trilby wrote:
    Two approaches to using AUR packages:
    1a) download aur tarball with wget, curl, via the webpage, or a tool like cower
    1b) (optional depending on choice in last step) uncompress the tarball with gzip/tar programs, or something like atool
    1c) cd to the new directory and run makepkg, potentially with the -s and/or -i flags ... or in some cases perhaps the -e and -f, or many others
    1d) (optional depending on choice in last step) run pacman -U <newly-create-pkg.tar.gz>
    1e) if anything happened to go wrong, you can pinpoint exactly where it went wrong, and either fix it, or have the information needed to get quick help from the forums
    SUM of option 1) learn about your system and it's package management and have control of what is happening.
    Also note each step has many choices.  This may seem intimidating at first (but probably not if you came from gentoo) - but each choice is well documented, so you can easily learn what they all do.
    Thanks again Trilby.
    I'm the kind of newbie that would start with approach 1.
    I like the idea of knowing what's going on (I'm a software engineer)
    (As you say, anyone choosing approach 2 probably shouldn't be here)
    I assume from 1a and 1b that what I download is source.
    I assume from 1c that makepkg does ./configure && make all, and then tars to the .tar.gz that pacman is expecting
    and from 1d that pacman -U simply installs from the local package instead of what it finds in the repository.
    That all seems reasonable to me
    When I used Gentoo (2004-2005) I was frustrated with many packages which did not compile, sometimes I would delve into the errors and try to fix them.
    As long as things eventually install without a big problem then I'll be ok with it.
    I'll just miss the convenience of pacman -Syu to update everything I have installed, mostly because I won't know that a new [AUR] version is available unless I go and search for it.
    I knew going into this that Arch wasn't going to be easy, but I still think it's worth it.

Maybe you are looking for