#!/bin/bash

ROOT=$HOME/syndicate/syndicate-AG-root
NAME="syndicate-AG"
VERSION="0.$(date +%Y\%m\%d\%H\%M\%S)"

DEPS="openssl curl protobuf libsyndicate thrift0.8-vicci" 

DEPARGS=""
for pkg in $DEPS; do
   DEPARGS="$DEPARGS -d $pkg"
done

source /usr/local/rvm/scripts/rvm

rm -f $NAME-0*.rpm

fpm --force -s dir -t rpm -a x86_64 -v $VERSION -n $NAME $DEPARGS -C $ROOT --license "Apache 2.0" --vendor "Princeton University" --description "Syndicate Acquisition Gateway daemon and drivers." $(ls $ROOT)


#!/bin/bash

ROOT=$HOME/syndicate/syndicate-AG-root
NAME="syndicate-AG"
VERSION="0.$(date +%Y\%m\%d\%H\%M\%S)"

DEPS="openssl curl protobuf libsyndicate thrift0.8-syndicate" 

DEPARGS=""
for pkg in $DEPS; do
   DEPARGS="$DEPARGS -d $pkg"
done

source /usr/local/rvm/scripts/rvm

rm -f $NAME-0*.rpm

fpm --force -s dir -t rpm -a x86_64 -v $VERSION -n $NAME $DEPARGS -C $ROOT --license "Apache 2.0" --vendor "Princeton University" --description "Syndicate Acquisition Gateway daemon and drivers." $(ls $ROOT)


Use thrift0.8-syndicate as the RPM name.
Use thrift0.8-syndicate as the RPM name.
